b.t.h.TestingThreadingHTTPServer(test_server.TestingThreadingTCPServer, TestingHTTPServerMixin) : class documentation

Part of bzrlib.tests.http_server View In Hierarchy

Known subclasses: bzrlib.tests.https_server.TestingThreadingHTTPSServer

A threading HTTP test server for HTTP 1.1.

Since tests can initiate several concurrent connections to the same http server, we need an independent connection for each of them. We achieve that by spawning a new thread for each connection.

Method __init__ Undocumented

Inherited from TestingThreadingTCPServer:

Method get_request Get the request and client address from the socket.
Method process_request_thread Undocumented
Method process_request Start a new thread to process the request.
Method shutdown_client Undocumented
Method set_ignored_exceptions Undocumented
Method _pending_exception Raise server uncaught exception.

Inherited from TestingTCPServerMixin (via TestingThreadingTCPServer):

Method server_bind Undocumented
Method serve Undocumented
Method handle_request Handle one request.
Method verify_request Verify the request.
Method handle_error Undocumented
Method ignored_exceptions_during_shutdown Undocumented
Method stop_client_connections Undocumented
Method shutdown_socket Properly shutdown a socket.
def __init__(self, server_address, request_handler_class, test_case_server):
API Documentation for Bazaar, generated by pydoctor at 2021-10-16 00:18:41.