each

each() Instance Public methods Iterates over the request headers

content_type

content_type() Instance Public methods The content-type header

content_length

content_length() Instance Public methods The content-length header

body

body() Instance Public methods Returns the request body.

[]

[](header_name) Instance Public methods Retrieves header_name

new

new(config) Class Public methods Creates a new HTTP request. WEBrick::Config::HTTP is the default configuration.

new

new(config={}, default=Config::HTTP) Class Public methods Proxy server configurations. The proxy server handles the following configuration items in addition to those supported by HTTPServer: :ProxyAuthProc Called with a request and response to authorize a request :ProxyVia Appended to the via header :ProxyURI The proxy server's URI :ProxyContentHandler Called with a request and response and allows modification of the response :ProxyTimeout Sets the proxy timeouts to

proxy_basic_auth

proxy_basic_auth(req, res, realm) Instance Public methods Simple wrapper for providing basic authentication for a proxied request. When called with a request req, response res, authentication realm and block the block will be called with a username and password. If the block returns true the request is allowed to continue, otherwise an HTTPStatus::ProxyAuthenticationRequired error is raised.

basic_auth

basic_auth(req, res, realm) Instance Public methods Simple wrapper for providing basic authentication for a request. When called with a request req, response res, authentication realm and block the block will be called with a username and password. If the block returns true the request is allowed to continue, otherwise an HTTPStatus::Unauthorized error is raised.

set_passwd

set_passwd(realm, user, pass) Instance Public methods Sets a password in realm with user and password for the #auth_type of this database.