Module: Roda::RodaPlugins::PlainHashResponseHeaders

Defined in:


The response_headers_plain_hash plugin will change Roda to use a plain hash for response headers. This is Roda’s default behavior on Rack 2, but on Rack 3+, Roda defaults to using Rack::Headers for response headers for backwards compatibility (Rack::Headers automatically lower cases header keys).

On Rack 3+, you should use this plugin for better performance if you are sure all headers in your application and middleware are already lower case (lower case response header keys are required by the Rack 3 spec).

Defined Under Namespace

Modules: ResponseMethods