End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::HTTP#options
options(path, initheader = nil)
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/net/http.rb, line 1408
def options(path, initheader = nil)
request(Options.new(path, initheader))
end
Sends a OPTIONS request to the path and gets a response, as an HTTPResponse object.