Method: Gem::Net::HTTP#move

Defined in:
lib/rubygems/vendor/net-http/lib/net/http.rb

#move(path, initheader = nil) ⇒ Object

Sends a MOVE request to the server; returns an instance of a subclass of Gem::Net::HTTPResponse.

The request is based on the Gem::Net::HTTP::Move object created from string path and initial headers hash initheader.

http = Gem::Net::HTTP.new(hostname)
http.move('/todos/1')


2188
2189
2190
# File 'lib/rubygems/vendor/net-http/lib/net/http.rb', line 2188

def move(path, initheader = nil)
  request(Move.new(path, initheader))
end