b.t.h.SmartClientHTTPMediumRequest(medium.SmartClientMediumRequest) : class documentation

Part of bzrlib.transport.http View In Hierarchy

A SmartClientMediumRequest that works with an HTTP medium.
Method __init__ Construct a SmartClientMediumRequest for the medium medium.
Method _accept_bytes Helper for accept_bytes.
Method _finished_writing Helper for finished_writing.
Method _read_bytes See SmartClientMediumRequest._read_bytes.
Method _read_line Helper for SmartClientMediumRequest.read_line.
Method _finished_reading See SmartClientMediumRequest._finished_reading.

Inherited from SmartClientMediumRequest:

Method accept_bytes Accept bytes for inclusion in this request.
Method finished_reading Inform the request that all desired data has been read.
Method finished_writing Finish the writing phase of this request.
Method read_bytes Read bytes from this requests response.
Method read_line Undocumented
def __init__(self, client_medium):
Construct a SmartClientMediumRequest for the medium medium.
def _accept_bytes(self, bytes):
Helper for accept_bytes.

Accept_bytes checks the state of the request to determing if bytes should be accepted. After that it hands off to _accept_bytes to do the actual acceptance.

def _finished_writing(self):
Helper for finished_writing.

finished_writing checks the state of the request to determine if finished_writing is allowed, and if it is hands off to _finished_writing to perform the action.

def _read_bytes(self, count):
See SmartClientMediumRequest._read_bytes.
def _read_line(self):
Helper for SmartClientMediumRequest.read_line.

By default this forwards to self._medium._get_line because we are operating on the medium's stream.

def _finished_reading(self):
See SmartClientMediumRequest._finished_reading.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.