Method: Net::HTTP#trace
- Defined in:
- lib/net/http.rb
#trace(path, initheader = nil) ⇒ Object
Sends a TRACE request to the server; returns an instance of a subclass of Net::HTTPResponse.
The request is based on the Net::HTTP::Trace object created from string path and initial headers hash initheader.
http = Net::HTTP.new(hostname)
http.trace('/todos/1')
2228 2229 2230 |
# File 'lib/net/http.rb', line 2228 def trace(path, initheader = nil) request(Trace.new(path, initheader)) end |