Method: Rbkb::Http::Response#do_chunked_encoding?
- Defined in:
- lib/rbkb/http/response.rb
#do_chunked_encoding?(hdrs = @headers) ⇒ Boolean
Indicates whether to use chunked encoding based on presence of the “Transfer-Encoding: chunked” header or the :ignore_chunked_encoding opts parameter.
68 69 70 71 |
# File 'lib/rbkb/http/response.rb', line 68 def do_chunked_encoding?(hdrs=@headers) ( (not @opts[:ignore_chunked_encoding]) and (hdrs.get_header_value("Transfer-Encoding").to_s =~ /(?:^|\W)chunked(?:\W|$)/) ) end |