November 2010
Intermediate to advanced
504 pages
12h 45m
English
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 error function. You can catch such errors with the handle-case command. If some code absolutely, positively needs to be called no matter what errors occur, you can place this code inside the unwind-protect command.
A web server processes HTTP requests. The most common type of request is the GET request, used for viewing information. Another common type is a POST request, 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. Both GET and POST requests may ...