1
from zope.interface import Interface
3
class IHTTPClientManager(Interface):
4
"""I coordinate between multiple L{HTTPClientProtocol} objects connected to a
5
single server to facilite request queuing and pipelining.
9
"""Called when the L{HTTPClientProtocol} doesn't want to accept anymore
12
@param proto: The L{HTTPClientProtocol} that is changing state.
13
@type proto: L{HTTPClientProtocol}
17
def clientIdle(proto):
18
"""Called when an L{HTTPClientProtocol} is able to accept more requests.
20
@param proto: The L{HTTPClientProtocol} that is changing state.
21
@type proto: L{HTTPClientProtocol}
25
def clientPipelining(proto):
26
"""Called when the L{HTTPClientProtocol determines that it is able to
27
support request pipelining.
29
@param proto: The L{HTTPClientProtocol} that is changing state.
30
@type proto: L{HTTPClientProtocol}
34
def clientGone(proto):
35
"""Called when the L{HTTPClientProtocol} disconnects from the server.
37
@param proto: The L{HTTPClientProtocol} that is changing state.
38
@type proto: L{HTTPClientProtocol}