Class: Net::HTTP::Trace

Inherits:
Net::HTTPRequest show all
Defined in:
lib/net/http/requests.rb

Overview

Class for representing HTTP method TRACE:

require 'net/http'
uri = URI('http://example.com')
hostname = uri.hostname # => "example.com"
req = Net::HTTP::Trace.new(uri) # => #<Net::HTTP::Trace TRACE>
res = Net::HTTP.start(hostname) do |http|
http.request(req)
end

See Request Headers.

Properties:

Related:

  • Net::HTTP#trace: sends TRACE request, returns response object.

Constant Summary collapse

METHOD =
'TRACE'
REQUEST_HAS_BODY =
false
RESPONSE_HAS_BODY =
true

Method Summary

Methods inherited from Net::HTTPRequest

#initialize

Constructor Details

This class inherits a constructor from Net::HTTPRequest