class documentation

class twisted.web.resource.EncodingResourceWrapper(proxyForInterface(IResource)): (source)

Implements interfaces: twisted.web.resource._IEncodingResource

View In Hierarchy

Wrap a IResource, potentially applying an encoding to the response body generated.

Note that the returned children resources won't be wrapped, so you have to explicitly wrap them if you want the encoding to be applied.

Present Since12.3
Instance Variable encoders A list of _IRequestEncoderFactory returning _IRequestEncoder that may transform the data passed to Request.write. The list must be sorted in order of priority: the first encoder factory handling the request will prevent the others from doing the same.
Method __init__ Undocumented
Method getEncoder Browser the list of encoders looking for one applicable encoder.
Instance Variable _encoders Undocumented
encoders = (source)
A list of _IRequestEncoderFactory returning _IRequestEncoder that may transform the data passed to Request.write. The list must be sorted in order of priority: the first encoder factory handling the request will prevent the others from doing the same.
(type: list.)
def __init__(self, original, encoders): (source)

Undocumented

_encoders = (source)

Undocumented

def getEncoder(self, request): (source)

Browser the list of encoders looking for one applicable encoder.

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