Class: Flame::Dispatcher::Response
- Inherits:
-
Rack::Response
- Object
- Rack::Response
- Flame::Dispatcher::Response
- Defined in:
- lib/flame/dispatcher/response.rb
Overview
Class for responses
Instance Method Summary collapse
-
#content_type=(value) ⇒ String
Set Content-Type header directly or by extension.
Instance Method Details
#content_type=(value) ⇒ String
Set Content-Type header directly or by extension
14 15 16 17 |
# File 'lib/flame/dispatcher/response.rb', line 14 def content_type=(value) value = Rack::Mime.mime_type(value) if value.start_with? '.' set_header Rack::CONTENT_TYPE, value end |