class Net::HTTP::Options
Klasse zur Darstellung der HTTP-Methode 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
Siehe Request Headers.
Eigenschaften
-
Anforderungsbody: optional.
-
Antwortkörper: ja.
-
Sicher: ja.
-
Idempotent: ja.
-
Cachebar: nein.
Verwandt
-
Net::HTTP#options: sendet eineOPTIONS-Anfrage, gibt das Antwortobjekt zurück.