What You've Learned
In this chapter, you created a web server using Common Lisp, and learned the following along the way:
You can signal conditions in Common Lisp with the
errorfunction. You can catch such errors with thehandle-casecommand. If some code absolutely, positively needs to be called no matter what errors occur, you can place this code inside theunwind-protectcommand.A web server processes HTTP requests. The most common type of request is the
GETrequest, used for viewing information. Another common type is aPOSTrequest, which is used when submitting web forms, for instance. You can tell the type of request, which page was requested, as well as other information, by looking at the request header. BothGETandPOSTrequests may ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access