class WEBrick::HTTPResponse - rack-1.6.4 Documentation

# class WEBrick::HTTPResponse

This monkey patch allows for applications to perform their own chunking through WEBrick::HTTPResponse iff rack is set to true.

### Attributes

rack[RW]

### Public Instance Methods

_rack_setup_header()
Alias for: setup_header
setup_header() click to toggle source

    # File lib/rack/handler/webrick.rb, line 11
    def setup_header
      app_chunking = rack && @header['transfer-encoding'] == 'chunked'

      @chunked = app_chunking if app_chunking

      _rack_setup_header

      @chunked = false if app_chunking
    end

Also aliased as: _rack_setup_header