patch

patch(path, data, initheader = nil, dest = nil) Instance Public methods Sends a PATCH request to the path and gets a response, as an HTTPResponse object.

options

options(path, initheader = nil) Instance Public methods Sends a OPTIONS request to the path and gets a response, as an HTTPResponse object.

move

move(path, initheader = nil) Instance Public methods Sends a MOVE request to the path and gets a response, as an HTTPResponse object.

mkcol

mkcol(path, body = nil, initheader = nil) Instance Public methods Sends a MKCOL request to the path and gets a response, as an HTTPResponse object.

lock

lock(path, body, initheader = nil) Instance Public methods Sends a LOCK request to the path and gets a response, as an HTTPResponse object.

inspect

inspect() Instance Public methods

head2

head2(path, initheader = nil, &block) Instance Public methods Alias for: request_head

head

head(path, initheader = nil) Instance Public methods Gets only the header from path on the connected-to host. header is a Hash like { 'Accept' => '/', ⦠}. This method returns a Net::HTTPResponse object. This method never raises an exception. response = nil Net::HTTP.start('some.www.server', 80) {|http| response = http.head('/index.html') } p response['content-type']

get2

get2(path, initheader = nil) Instance Public methods Alias for: request_get

get 2

get(path, initheader = {}, dest = nil) Instance Public methods Retrieves data from path on the connected-to host which may be an absolute path String or a URI to extract the path from. initheader must be a Hash like { 'Accept' => '/', ⦠}, and it defaults to an empty hash. If initheader doesn't have the key 'accept-encoding', then a value of âgzip;q=1.0,deflate;q=0.6,identity;q=0.3â is used, so that gzip compression is used in preference to deflate compression, which is used in