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. These are listed below.
All classes are defined under the Net
module. Indentation indicates inheritance. For a list of the classes see Net::HTTP
.
306 Switch Proxy - no longer unused
Unexpected response from the server.
The writer adapter class
Command is not supported on server.
Individual switch class. Not important to the user.
Defined within Switch
are several Switch-derived classes: NoArgument
, RequiredArgument
, etc.
Raises when there is an argument for a switch which takes no argument.
Raises when a switch with mandatory argument has no argument.