Module Sinatra::RespondTo::Helpers
In: lib/sinatra/respond_to.rb

Methods

External Aliases

content_type -> content_type_without_save

Public Class methods

Patch the content_type function to remember the set type This helps cut down on time in the format helper so it doesn‘t have to do a reverse lookup on the header

Public Instance methods

This is mostly just a helper so request.path_info isn‘t changed when serving files from the public directory

[Validate]