Package wtf :: Package impl :: Package http :: Module _request :: Class ResponseHeadersWaitState
[hide private]
[frames] | no frames]

Class ResponseHeadersWaitState

source code

object --+    
         |    
 BaseState --+
             |
            ResponseHeadersWaitState

We're waiting for headers to be set and sent

States to go from here:

Instance Methods [hide private]
 
__init__(self, request)
Initialization
source code
 
send_headers(self, headers)
Send headers
source code
 
finish_headers(self)
Finalize headers
source code

Inherited from BaseState: read_headers, read_request, request_body_stream, response_body_stream, send_continue, send_status

Inherited from BaseState (private): _send_continue, _set_state

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
bool response_started = False
Was the response already started?
Instance Variables [hide private]
dict _hdict
Dict of header names -> values ({'name': ['value', ...]})
list _headers
Ordered list of header names

Inherited from BaseState (private): _request

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, request)
(Constructor)

source code 
Initialization
Parameters:
  • request - Request instance
Overrides: object.__init__

send_headers(self, headers)

source code 
Send headers
Parameters:
  • headers - List of headers ([('name', 'value'), ...])
Overrides: BaseState.send_headers

finish_headers(self)

source code 
Finalize headers
Overrides: BaseState.finish_headers