From: "cpr (Chris Rice)" Date: 2013-05-21T12:54:41+09:00 Subject: [ruby-core:55093] [ruby-trunk - Feature #8429][Open] Options requests in net/http should be able to accept a response body Issue #8429 has been reported by cpr (Chris Rice). ---------------------------------------- Feature #8429: Options requests in net/http should be able to accept a response body https://bugs.ruby-lang.org/issues/8429 Author: cpr (Chris Rice) Status: Open Priority: Low Assignee: Category: lib Target version: As it is currently implemented, Net::HTTP::Options does not allow responses to OPTIONS requests to have a response body: class Net::HTTP::Options < Net::HTTPRequest METHOD = 'OPTIONS' REQUEST_HAS_BODY = false RESPONSE_HAS_BODY = false end According to (()) section 9.2, responses to OPTIONS requests _may_ contain response bodies: "A 200 response SHOULD include any header fields that indicate optional features implemented by the server and applicable to that resource (e.g., Allow), possibly including extensions not defined by this specification. The response body, if any, SHOULD also include information about the communication options." As it currently stands, net/http is not useful for issuing an OPTIONS request to an http server which actually makes use of the response body. -- http://bugs.ruby-lang.org/