Method: Arrow::Service#options
- Defined in:
- lib/arrow/service.rb
#options(txn, *args) ⇒ Object
OPTIONS / Return a service document containing links to all :TODO: Integrate HTTP Access Control preflighted requests?
(https://developer.mozilla.org/en/HTTP_access_control)
118 119 120 121 122 123 124 |
# File 'lib/arrow/service.rb', line 118 def ( txn, *args ) allowed_methods = self.allowed_methods( args ) txn.headers_out['Allow'] = allowed_methods.join(', ') txn.content_type = RUBY_OBJECT_MIMETYPE return allowed_methods end |