class Net::HTTP::Trace - Documentation for Ruby 4.0
Description: class Net::HTTP::Trace: en. wikipedia.
Keywords: ruby,class,Net::HTTP::Trace

🔍

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.