Method: Protocol::HTTP::Headers#trailer!
- Defined in:
- lib/protocol/http/headers.rb
#trailer!(&block) ⇒ Object
Record the current headers, and prepare to add trailers.
This method is typically used after headers are sent to capture any additional headers which should then be sent as trailers.
A sender that intends to generate one or more trailer fields in a message should generate a trailer header field in the header section of that message to indicate which fields might be present in the trailers.
121 122 123 124 125 |
# File 'lib/protocol/http/headers.rb', line 121 def trailer!(&block) @tail ||= @fields.size return trailer(&block) end |