Module | Sinatra::RespondTo |
In: |
lib/sinatra/respond_to.rb
|
SUPPORTED_ACCEPT_HEADERS | = | { :xml => [ 'text/xml', 'application/xml' | Define all MIME types you want to support here. This conversion table will be used for auto-negotiation with browser in sinatra when no ‘format’ parameter is specified. |
render | -> | render_without_format |
This code was copied from respond_to plugin github.com/cehoffman/sinatra-respond_to MIT License |