Module: WebPipe::Plugs::ContentType
- Defined in:
- lib/web_pipe/plugs/content_type.rb
Overview
Sets Content-Type
response header.
Constant Summary collapse
- HEADER =
Content-Type header
'Content-Type'
Class Method Summary collapse
Class Method Details
.call(content_type) ⇒ Object
17 18 19 |
# File 'lib/web_pipe/plugs/content_type.rb', line 17 def self.call(content_type) ->(conn) { conn.add_response_header(HEADER, content_type) } end |