b.t.h.HttpServer(test_server.TestingTCPServerInAThread) : class documentation

Part of bzrlib.tests.http_server View In Hierarchy

Known subclasses: bzrlib.plugins.launchpad.test_lp_directory.PreCannedHTTPServer, bzrlib.tests.http_server.HttpServer_PyCurl, bzrlib.tests.http_server.HttpServer_urllib, bzrlib.tests.http_utils.AuthServer, bzrlib.tests.http_utils.HTTPServerRedirecting, bzrlib.tests.http_utils.HTTPServerWithSmarts, bzrlib.tests.http_utils.ProxyServer, bzrlib.tests.https_server.HTTPSServer, bzrlib.tests.test_http.ActivityHTTPServer, bzrlib.tests.test_http.LimitedRangeHTTPServer

A test server for http transports.

Subclasses can provide a specific request handler.

Method __init__ Constructor.
Method create_server Undocumented
Method log Capture Server log output.
Method start_server See bzrlib.transport.Server.start_server.
Method get_url See bzrlib.transport.Server.get_url.
Method get_bogus_url See bzrlib.transport.Server.get_bogus_url.
Method _get_remote_url Undocumented

Inherited from TestingTCPServerInAThread:

Method __repr__ Undocumented
Method run_server Undocumented
Method stop_server Remove the server and cleanup any resources it owns.
Method set_ignored_exceptions Install an exception handler for the server.
Method pending_exception Raise uncaught exception in the server.
def __init__(self, request_handler=TestingHTTPRequestHandler, protocol_version=None):
Constructor.
Parametersrequest_handlera class that will be instantiated to handle an http connection (one or several requests).
protocol_versionif specified, will override the protocol version of the request handler.
def create_server(self):
Undocumented
def _get_remote_url(self, path):
Undocumented
def log(self, format, *args):
Capture Server log output.
def start_server(self, backing_transport_server=None):
See bzrlib.transport.Server.start_server.
Parametersbacking_transport_serverThe transport that requests over this protocol should be forwarded to. Note that this is currently not supported for HTTP.
def get_url(self):
See bzrlib.transport.Server.get_url.
def get_bogus_url(self):
See bzrlib.transport.Server.get_bogus_url.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.