Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 234 Bytes

content_type.md

File metadata and controls

16 lines (11 loc) · 234 Bytes

ContentType

The ContentType plug is just a helper to set the Content-Type response header.

Example:

require 'web_pipe'

class MyApp
  include WebPipe
  
  plug :html, WebPipe::Plugs::ContentType.('text/html')
end