Module

Mixin for holding meta-information.

Attributes
Read & Write

returns an Array that consists of status code and message.

Read & Write

returns a URI that is the base of relative URIs in the data. It may differ from the URI supplied by a user due to redirection.

Read

returns a Hash that represents header fields. The Hash keys are downcased for canonicalization. The Hash values are a field body. If there are multiple field with same field name, the field values are concatenated with a comma.

Read

returns a Hash that represents header fields. The Hash keys are downcased for canonicalization. The Hash value are an array of field values.

Instance Methods

returns a charset parameter in Content-Type field. It is downcased for canonicalization.

If charset parameter is not given but a block is given, the block is called and its result is returned. It can be used to guess charset.

If charset parameter and block is not given, nil is returned except text type in HTTP. In that case, “iso-8859-1” is returned as defined by RFC2616 3.7.1.

Returns a list of encodings in Content-Encoding field as an array of strings.

The encodings are downcased for canonicalization.

returns “type/subtype” which is MIME Content-Type. It is downcased for canonicalization. Content-Type parameters are stripped.

returns a Time that represents the Last-Modified field.