nopasaran.tools.https_1_socket_server.HTTPS1SocketServer¶
- class nopasaran.tools.https_1_socket_server.HTTPS1SocketServer¶
Bases:
objectHTTPS/1.1 server with self-signed TLS and route-based request handling.
- __init__()¶
Methods
__init__()close()generate_and_load_cert(identifier)generate_self_signed_cert(identifier)handle_client_connection(tls_socket)start(host, port)wait_for_request(port, timeout)Wait for a single HTTPS request with TLS handshake and user-defined timeout.
- wait_for_request(port, timeout)¶
Wait for a single HTTPS request with TLS handshake and user-defined timeout.