This package helps in processing and testing HTTP requests.
This package contains various useful functions which help in processing HTTP requests.
- Receiving an object encoded with JSON format from HTTP request;
- Replying with an object encoded with JSON format;
- Replying with a text message with HTTP status code;
- Replying with an error with HTTP status code;
- Performing a simple automated HTTP handler test using the built-in test package;
- Reading a single-value HTTP header;
- Reading a non-duplicate HTTP "cookie";
- Parsing the HTTP
Accept
header. - Checking browser (client) support for JSON.