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
Unexpected response from the server.
Raised when a RSS::Maker
attempts to use an unknown maker.
Raised to indicate that a system exit should occur with the specified exit_code
Remote host reset the connection request.
An HTTP response. This is filled in by the service or do_* methods of a WEBrick
HTTP Servlet.
Raised by transcoding methods when a named encoding does not correspond with a known converter.
Encoding
conversion class.
A template for stream parser listeners. Note that the declarations (attlistdecl, elementdecl, etc) are trivially processed; REXML
doesn’t yet handle doctype entity declarations, so you have to parse them out yourself.
Mixin methods for –version and –platform Gem::Command
options.
418 I’m a teapot - RFC 2324; a joke RFC 420 Enhance Your Calm - Twitter
Raised when trying to use an expired tuple.