Package wtf :: Package impl :: Package http :: Module _util :: Class ExpectationReader
[hide private]
[frames] | no frames]

Class ExpectationReader

source code

object --+
         |
        ExpectationReader

Before actual reading send a 100 continue intermediate response
Instance Methods [hide private]
 
__init__(self, stream, request)
Initialization
source code
str
_send_continue(self, size)
Send continue before reading
source code

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

Instance Variables [hide private]
HTTPRequest _request
Request instance
file _stream
The stream to read from
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, stream, request)
(Constructor)

source code 
Initialization
Parameters:
  • stream (file) - The stream to actually read data from
  • request (HTTPRequest) - Request instance
Overrides: object.__init__

_send_continue(self, size)

source code 
Send continue before reading
Parameters:
  • size (int) - Read at max size bytes
Returns: str
The read bytes, or empty on EOF