Method: Net::HTTP#move

Defined in:
lib/net/http.rb

#move(path, initheader = nil) ⇒ Object

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

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

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


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

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