class Net::HTTP::Options

Class for representing HTTP method OPTIONS:

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

Properties:

Related:

Constants

METHOD
REQUEST_HAS_BODY
RESPONSE_HAS_BODY