🔍

No recent searches

# class Net::HTTP::Trace

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:

- Request body: no.

- Response body: yes.

- Safe: yes.

- Idempotent: yes.

- Cacheable: no.

Related:

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