Basic Protocol for ignoring data

class autopush.protocol.IgnoreBody(response, deferred)[source]

A protocol that discards any data it receives

This is necessary to support persistent HTTP connections. If the response body is never read using Response.deliverBody, or stopProducing() is called, the connection will not be reused.

classmethod ignore(response)[source]

Class method helper for ignoring the response


Ignore received data


Relay back the loss of connection to the deferred