class documentation

class twisted.web._newclient.ChunkedEncoder: (source)

Implements interfaces: twisted.internet.interfaces.IConsumer

View In Hierarchy

Helper object which exposes IConsumer on top of HTTP11ClientProtocol for streaming request bodies to the server.

Method __init__ Undocumented
Instance Variable transport Undocumented
Method registerProducer Register the given producer with self.transport.
Method write Write the given request body bytes to the transport using chunked encoding.
Method unregisterProducer Indicate that the request body is complete and finish the request.
Method _allowNoMoreWrites Indicate that no additional writes are allowed. Attempts to write after calling this method will be met with an exception.
def __init__(self, transport): (source)

Undocumented

transport = (source)

Undocumented

def _allowNoMoreWrites(self): (source)

Indicate that no additional writes are allowed. Attempts to write after calling this method will be met with an exception.

def registerProducer(self, producer, streaming): (source)

Register the given producer with self.transport.

def write(self, data): (source)

Write the given request body bytes to the transport using chunked encoding.

ParametersdataUndocumented (type: bytes)
def unregisterProducer(self): (source)

Indicate that the request body is complete and finish the request.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.