OPTIONS

OPTIONS request for a resource

OPTIONS
/resource/1
HTTP/1.1
Accept: */*
Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Host: example.com
User-Agent: rest-man/1.1.0 (darwin21 arm64) ruby/3.1.2p20
HTTP/1.1
200
OK
Allow: GET, POST, HEAD, OPTIONS
simple
advance
resource
cli
response = RestMan.options "http://example.com/resource/1"

response.code                 #=> 200
response.headers                #=> Hash
response.headers[:allow] #=> "GET, POST, HEAD, OPTIONS"
response = RestMan.execute(method: :options, url: "http://example.com/resource/1")

response.code                 #=> 200
response.headers                #=> Hash
response.headers[:allow] #=> "GET, POST, HEAD, OPTIONS"
# RestMan::Resource hasn't support options request
RestMan CLI hasn't support options request.