response - Factor Documentation (original) (raw)

Vocabulary
http

Class description
An HTTP response.

Instances contain the following slots:

version The HTTP version. Default is 1.1 and should not be changed without good reason.
code HTTP status code, an integer. Examples are 200 for success, 404 for file not found, and so on.
message HTTP status message, only displayed to the user. If the status code is 200, the status message might be "Success", for example.
header An assoc of HTTP header values. See HTTP headers
cookies A sequence of HTTP cookies. See HTTP cookies
content-type an HTTP content type
content-charset an encoding name
content-encoding an encoding descriptor. See I/O encodings
body an HTTP response body

Definition

TUPLE: response
version code message header cookies content-type
content-charset content-encoding body ;

Methods