Implements DRb
over a UNIX socket
DRb
UNIX socket URIs look like drbunix:<path>?<option>
. The option is optional.
HTTP response class.
This class wraps together the response header and the response body (the entity requested).
It mixes in the HTTPHeader module, which provides access to response header values both via hash-like methods and via individual readers.
Note that each possible HTTP response code defines its own HTTPResponse
subclass. All classes are defined under the Net
module. Indentation indicates inheritance. For a list of the classes see Net::HTTP
.
Correspondence HTTP code => class
is stored in CODE_TO_OBJ
constant:
Net::HTTPResponse::CODE_TO_OBJ['404'] #=> Net::HTTPNotFound
306 Switch Proxy - no longer unused
418 I’m a teapot - RFC 2324; a joke RFC 420 Enhance Your Calm - Twitter
Unexpected response from the server.
OpenTimeout
, a subclass of Timeout::Error
, is raised if a connection cannot be created within the open_timeout.
ReadTimeout
, a subclass of Timeout::Error
, is raised if a chunk of the response cannot be read within the read_timeout.
WriteTimeout
, a subclass of Timeout::Error
, is raised if a chunk of the response cannot be written within the write_timeout. Not raised on Windows.
Unexpected reply code returned from server.