/usr/share/pyshared/twisted/web2/client/interfaces.py is in python-twisted-web2 8.1.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | from zope.interface import Interface
class IHTTPClientManager(Interface):
"""I coordinate between multiple L{HTTPClientProtocol} objects connected to a
single server to facilite request queuing and pipelining.
"""
def clientBusy(proto):
"""Called when the L{HTTPClientProtocol} doesn't want to accept anymore
requests.
@param proto: The L{HTTPClientProtocol} that is changing state.
@type proto: L{HTTPClientProtocol}
"""
pass
def clientIdle(proto):
"""Called when an L{HTTPClientProtocol} is able to accept more requests.
@param proto: The L{HTTPClientProtocol} that is changing state.
@type proto: L{HTTPClientProtocol}
"""
pass
def clientPipelining(proto):
"""Called when the L{HTTPClientProtocol} determines that it is able to
support request pipelining.
@param proto: The L{HTTPClientProtocol} that is changing state.
@type proto: L{HTTPClientProtocol}
"""
pass
def clientGone(proto):
"""Called when the L{HTTPClientProtocol} disconnects from the server.
@param proto: The L{HTTPClientProtocol} that is changing state.
@type proto: L{HTTPClientProtocol}
"""
pass
|