# ``twisted`.`web`.`iweb`.`_IRequestEncoderFactory``

interface documentation

`class _IRequestEncoderFactory(Interface): (source)`

Known implementations: `twisted.web.server.GzipEncoderFactory`

View In Hierarchy

A factory for returing `_IRequestEncoder` instances.

Present Since
12.3

Method | `encoderForRequest` | If applicable, returns a `_IRequestEncoder` instance which will encode the request.

def encoderForRequest(request): (source)
If applicable, returns a `_IRequestEncoder` instance which will encode the request.