Method: Gem::Net::HTTP#options
- Defined in:
- lib/rubygems/vendor/net-http/lib/net/http.rb
#options(path, initheader = nil) ⇒ Object
Sends an Options request to the server; returns an instance of a subclass of Gem::Net::HTTPResponse.
The request is based on the Gem::Net::HTTP::Options object created from string path and initial headers hash initheader.
http = Gem::Net::HTTP.new(hostname)
http.('/')
2143 2144 2145 |
# File 'lib/rubygems/vendor/net-http/lib/net/http.rb', line 2143 def (path, initheader = nil) request(Options.new(path, initheader)) end |