Class | Rack::ContentType |
In: |
lib/rack/content_type.rb
|
Parent: | Object |
Sets the Content-Type header on responses which don‘t have one.
Builder Usage:
use Rack::ContentType, "text/plain"
When no content type argument is provided, "text/html" is assumed.