Duplicates the deflate stream.
Make an internal copy of the source buffer. Updates to the copy will not affect the source buffer.
source = IO::Buffer.for("Hello World") # => # #<IO::Buffer 0x00007fd598466830+11 EXTERNAL READONLY SLICE> # 0x00000000 48 65 6c 6c 6f 20 57 6f 72 6c 64 Hello World buffer = source.dup # => # #<IO::Buffer 0x0000558cbec03320+11 INTERNAL> # 0x00000000 48 65 6c 6c 6f 20 57 6f 72 6c 64 Hello World
Like Net::HTTP.get
, but returns a Net::HTTPResponse
object instead of the body string.
Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil
if none.
Returns the user name of the proxy server, if defined, nil
otherwise; see Proxy Server.
Executes a request which uses a representation and returns its body.
Like Net::HTTP.get
, but returns a Net::HTTPResponse
object instead of the body string.
Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil
if none.
Returns the user name of the proxy server, if defined, nil
otherwise; see Proxy Server.
Executes a request which uses a representation and returns its body.
Private setter for the path of the URI::FTP
.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.
Return the column number in characters for the given byte offset.
Return the column number in characters for the given byte offset.