Class: Herdis::Rack::DefaultHeaders
- Inherits:
-
Object
- Object
- Herdis::Rack::DefaultHeaders
- Includes:
- Goliath::Rack::AsyncMiddleware
- Defined in:
- lib/herdis/rack/default_headers.rb
Constant Summary collapse
- DEFAULT_HEADERS =
{ 'Content-Type' => 'application/json' }
Instance Method Summary collapse
Instance Method Details
#post_process(env, status, headers, body) ⇒ Object
10 11 12 |
# File 'lib/herdis/rack/default_headers.rb', line 10 def post_process(env, status, headers, body) [status, headers.merge(DEFAULT_HEADERS), body] end |