Class HTTP::Message::Headers
In: lib/http-access2/http.rb
Parent: Object

HTTP::Message::HeadersHTTP message header.

DESCRIPTION

  A class that describes header part of HTTP message.

Methods

Constants

StatusCodeMap = { Status::OK => 'OK', Status::MOVED_PERMANENTLY => 'Moved Permanently', Status::FOUND => 'Found', Status::SEE_OTHER => 'See Other', Status::TEMPORARY_REDIRECT => 'Temporary Redirect', Status::MOVED_TEMPORARILY => 'Temporary Redirect', Status::BAD_REQUEST => 'Bad Request', Status::INTERNAL => 'Internal Server Error', }
CharsetMap = { 'NONE' => 'us-ascii', 'EUC' => 'euc-jp', 'SJIS' => 'shift_jis', 'UTF8' => 'utf-8', }

Attributes

body_charset  [RW]  Charset.
body_date  [RW]  A milestone of body.
body_size  [R]  Size of body.
body_type  [RW]  Content-type.
chunked  [R]  Chunked or not.
http_version  [RW]  HTTP version string in a HTTP header.
reason_phrase  [RW]  HTTP status reason phrase.
request_method  [R]  Request method.
request_uri  [R]  Requested URI.
request_via_proxy  [RW] 
response_status_code  [R] 

Public Class methods

SYNOPSIS

  HTTP::Message.new

ARGS

  N/A

DESCRIPTION

  Create a instance of HTTP request or HTTP response.  Specify
  status_code for HTTP response.

Public Instance methods

body_size == nil means that the body is_a? IO

[Validate]