Module: Roda::RodaPlugins::DropBody

Defined in:
lib/roda/plugins/drop_body.rb

Overview

The drop_body plugin automatically drops the body and Content-Type/Content-Length headers from the response if the response status indicates that the response should not include a body (response statuses 100, 101, 102, 204, and 304). For response status 205, the body and Content-Type headers are dropped, but the Content-length header is set to ‘0’ instead of being dropped.

Defined Under Namespace

Modules: ResponseMethods