class Rack::Chunked::TrailerBody
A body wrapper that emits chunked responses and also supports sending
Trailer headers. Note that the response body provided to initialize must
have a trailers
method that returns a hash of trailer headers,
and the rack response itself should have a Trailer header listing the
headers that the trailers
method will return.
Private Instance Methods
yield_trailers() { |"| ... }
click to toggle source
Yield strings for each trailer header.
# File lib/rack/chunked.rb, line 70 def yield_trailers @body.trailers.each_pair do |k, v| yield "#{k}: #{v}\r\n" end end