Module: Roda::RodaPlugins::DeleteHeaders
- Defined in:
- lib/roda/plugins/delete_nil_headers.rb
Overview
The delete_nil_headers plugin deletes any headers whose value is set to nil. Because of how default headers are set in Roda, if you have a default header but don’t want to set it for a specific request, you need to use this plugin and set the value to nil so that
The following example will return “<foo>” as the body.
plugin :h
route do |r|
h('<foo>')
end
Defined Under Namespace
Modules: ResponseMethods