Mixin for holding meta-information.

Constants

RE_LWS = /[\r\n\t ]+/n

RE_TOKEN = %r{[^\x00- ()<>@,;:\\"/\[\]?={}\x7f]+}n

RE_QUOTED_STRING = %r{"(?:[\r\n\t !#-\[\]-~\x80-\xff]|\\[\x00-\x7f])*"}n

RE_PARAMETERS = %r{(?:;#{RE_LWS}?#{RE_TOKEN}#{RE_LWS}?=#{RE_LWS}?(?:#{RE_TOKEN}|#{RE_QUOTED_STRING})#{RE_LWS}?)*}n

Attributes

[RW] status

returns an Array that consists of status code and message.

[RW] base_uri

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.

[R] meta

returns a Hash that represents header fields. The Hash keys are downcased for canonicalization.

Show files where this module is defined (1 file)
Register or log in to add new notes.