HTTP request class. This class wraps together the request header and the request path. You cannot use this class directly. Instead, you should use one of its subclasses: Net::HTTP::Get
, Net::HTTP::Post
, Net::HTTP::Head
.
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
.
444 No Response - Nginx 449 Retry With - Microsoft 450 Blocked by Windows Parental Controls - Microsoft 499 Client Closed Request - Nginx
Non-authentication POP3
protocol error (reply code “-ERR”, except authentication).
POP3
authentication error.
Represents an SMTP
authentication error.
Represents an SMTP
command syntax error (error code 500)
Represents a fatal SMTP
error (error code 5xx, except for 500)
Unexpected reply code returned from server.
Raised on redirection, only occurs when redirect
option for HTTP is false
.
Base class of exceptions from OptionParser
.
The error type thrown by all PStore
methods.