Like Net::HTTP.get
, but returns a Net::HTTPResponse
object instead of the body string.
Returns integer 80
, the default port to use for HTTP requests:
Net::HTTP.default_port # => 80
Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil
if none.
Returns the port number of the proxy server, if defined, nil
otherwise; see Proxy Server.
Returns the password of the proxy server, if defined, nil
otherwise; see Proxy Server.
utils
Like Net::HTTP.get
, but returns a Net::HTTPResponse
object instead of the body string.
Returns integer 80
, the default port to use for HTTP requests:
Net::HTTP.default_port # => 80
Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil
if none.
Returns the port number of the proxy server, if defined, nil
otherwise; see Proxy Server.
Returns the password of the proxy server, if defined, nil
otherwise; see Proxy Server.
true if the response has a body.
Private setter for the path of the URI::FTP
.
Return the character offset for the given byte offset.
Return the column number in characters for the given byte offset.