autopush.protocol

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

dataReceived(data)[source]

Ignore received data

connectionLost(reason)[source]

Relay back the loss of connection to the deferred