/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Andrew Bennetts
  • Date: 2008-02-11 06:56:18 UTC
  • mto: (3245.4.1 Version 3 implementation.)
  • mto: This revision was merged to the branch mainline in revision 3428.
  • Revision ID: andrew.bennetts@canonical.com-20080211065618-5z8nwo6oik8dgdkt
Checkpoint first rough cut of SmartServerRequestProtocolThree, this implementation reuses the _StatefulDecoder class.  Plus some attempts to start tidying the smart protocol tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
class SmartServerRequest(object):
32
32
    """Base class for request handlers."""
 
33
    # XXX: rename this class to BaseSmartServerRequestHandler ?  A request
 
34
    # *handler* is a different concept to the request.
33
35
 
34
36
    def __init__(self, backing_transport):
35
37
        """Constructor.
234
236
            else:
235
237
                raise
236
238
 
 
239
    def headers_received(self, headers):
 
240
        # XXX
 
241
        pass
 
242
 
 
243
    def args_received(self, args):
 
244
        # XXX
 
245
        pass
 
246
 
 
247
    def no_body_received(self):
 
248
        # XXX
 
249
        pass
 
250
 
 
251
    def prefixed_body_received(self, body_bytes):
 
252
        # XXX
 
253
        pass
 
254
 
 
255
    def body_chunk_received(self, chunk_bytes):
 
256
        # XXX
 
257
        pass
 
258
 
 
259
 
237
260
 
238
261
class HelloRequest(SmartServerRequest):
239
262
    """Answer a version request with the highest protocol version this server