Class: WEBrick::HTTPResponse
- Inherits:
-
Object
- Object
- WEBrick::HTTPResponse
- Defined in:
- lib/rack/handler/webrick.rb
Overview
This monkey patch allows for applications to perform their own chunking through WEBrick::HTTPResponse if rack is set to true.
Instance Attribute Summary collapse
-
#rack ⇒ Object
Returns the value of attribute rack.
Instance Method Summary collapse
Instance Attribute Details
#rack ⇒ Object
Returns the value of attribute rack.
7 8 9 |
# File 'lib/rack/handler/webrick.rb', line 7 def rack @rack end |
Instance Method Details
#_rack_setup_header ⇒ Object
9 |
# File 'lib/rack/handler/webrick.rb', line 9 alias _rack_setup_header setup_header |
#setup_header ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rack/handler/webrick.rb', line 10 def setup_header if rack && @header["transfer-encoding"] == "chunked" @chunked = true _rack_setup_header @chunked = false else _rack_setup_header end end |