In this chapter, we will cover the following recipes:
- Treating JSON—how to parse and write JSON objects
- Parsing URLs—how to parse the path, query, and other parts of a URL
- Consuming HTTP—how to read data from an HTTP endpoint
- Submitting forms to HTTP—how to POST HTML forms to an HTTP endpoint
- Building HTML—how to generate HTML with proper escaping
- Serving HTTP—serving dynamic content over HTTP
- Serving static files—how to serve static files over HTTP
- Errors in web applications—how to report errors in web applications
- Handling forms and files—parsing data received from HTML forms and uploaded files
- REST API—serving a basic REST/JSON API
- Handling cookies—how to handle cookies to identify a returning user