HTTP response objects

This is a response sent to an incoming HTTP request.

Fields

status

A string indicating the HTTP response status, the default is "200 OK".

headers

A table of headers to be included in the response. If not present the field "Content-Length" is calculated automatically.

body

The most important field, this contains the data to be returned to the client.