lib/rackful/resource.rb
Handles an OPTIONS request.

As a courtesy, this module implements a default handler for OPTIONS
requests. It creates an `Allow:` header, listing all implemented HTTP/1.1
methods for this resource. By default, an `HTTP/1.1 204 No Content` is
returned (without an entity body).

Feel free to override this method at will.
@return [void]
@raise [HTTP404NotFound] `404 Not Found` if this resource is empty.
Handles an OPTIONS request.
As a courtesy, this module implements a default handler for OPTIONS
requests. It creates an `Allow:` header, listing all implemented HTTP/1.1
methods for this resource. By default, an `HTTP/1.1 204 No Content` is
returned (without an entity body).

Feel free to override this method at will.
Handles an OPTIONS request . As a courtesy this module implements a default handler for OPTIONS requests . It creates an ` Allow : ` header listing all implemented HTTP / 1 . 1 methods for this resource . By default an ` HTTP / 1 . 1 204 No Content ` is returned ( without an entity body ) . Feel free to override this method at will .
def http_OPTIONS request, response
    raise HTTP404NotFound, path if self.empty?
    response.status = status_code :no_content
    response.header['Allow'] = self.http_methods.join ', '
  end
def http_OPTIONS request , response raise HTTP404NotFound , path if self . empty? response . status = status_code :no_content response . header [ 'Allow' ] = self . http_methods . join ', ' end
Handles an OPTIONS request.
Handles an OPTIONS request .
None
void
[HTTP404NotFound] `404 Not Found` if this resource is empty.
[ HTTP404NotFound ] ` 404 Not Found ` if this resource is empty .
request
<not_specific>
response
<not_specific>