get_passwd

get_passwd(realm, user, reload_db=false) Instance Public methods Retrieves a password in realm for user for the #auth_type of this database. reload_db is a dummy value.

make_passwd

make_passwd(realm, user, pass) Instance Public methods Creates an obscured password in realm with user and password using the #auth_type of this database.

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.

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.

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.

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

new

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

[]

[](header_name) Instance Public methods Retrieves header_name

body

body() Instance Public methods Returns the request body.

content_length

content_length() Instance Public methods The content-length header