~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/web2/client/interfaces.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-17 14:52:35 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20070117145235-btmig6qfmqfen0om
Tags: 2.5.0-0ubuntu1
New upstream version, compatible with python2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from zope.interface import Interface
 
2
 
 
3
class IHTTPClientManager(Interface):
 
4
    """I coordinate between multiple L{HTTPClientProtocol} objects connected to a 
 
5
    single server to facilite request queuing and pipelining.
 
6
    """
 
7
 
 
8
    def clientBusy(proto):
 
9
        """Called when the L{HTTPClientProtocol} doesn't want to accept anymore
 
10
        requests.
 
11
 
 
12
        @param proto: The L{HTTPClientProtocol} that is changing state.
 
13
        @type proto: L{HTTPClientProtocol}        
 
14
        """
 
15
        pass
 
16
    
 
17
    def clientIdle(proto):
 
18
        """Called when an L{HTTPClientProtocol} is able to accept more requests.
 
19
    
 
20
        @param proto: The L{HTTPClientProtocol} that is changing state.
 
21
        @type proto: L{HTTPClientProtocol}
 
22
        """
 
23
        pass
 
24
 
 
25
    def clientPipelining(proto):
 
26
        """Called when the L{HTTPClientProtocol determines that it is able to
 
27
        support request pipelining.
 
28
    
 
29
        @param proto: The L{HTTPClientProtocol} that is changing state.
 
30
        @type proto: L{HTTPClientProtocol}
 
31
        """     
 
32
        pass
 
33
    
 
34
    def clientGone(proto):
 
35
        """Called when the L{HTTPClientProtocol} disconnects from the server.
 
36
 
 
37
        @param proto: The L{HTTPClientProtocol} that is changing state.
 
38
        @type proto: L{HTTPClientProtocol}
 
39
        """
 
40
        pass