class Gem::Net::HTTP::Trace
Class for representing HTTP method TRACE:
require 'rubygems/net-http/lib/net/http' uri = URI('http://example.com') hostname = uri.hostname # => "example.com" req = Gem::Net::HTTP::Trace.new(uri) # => #<Gem::Net::HTTP::Trace TRACE> res = Gem::Net::HTTP.start(hostname) do |http| http.request(req) end
See Request Headers.
Properties:
-
Request body: no.
-
Response body: yes.
-
Safe: yes.
-
Idempotent: yes.
-
Cacheable: no.
Related:
-
Gem::Net::HTTP#trace
: sendsTRACE
request, returns response object.
Constants
- METHOD
- REQUEST_HAS_BODY
- RESPONSE_HAS_BODY