MCPcopy Index your code
hub / github.com/RustPython/RustPython / create_https_server

Function create_https_server

Lib/test/test_httpservers.py:58–69  ·  view source on GitHub ↗
(
    certfile,
    keyfile=None,
    password=None,
    *,
    address=('localhost', 0),
    request_handler=DummyRequestHandler,
)

Source from the content-addressed store, hash-verified

56
57
58def create_https_server(
59 certfile,
60 keyfile=None,
61 password=None,
62 *,
63 address=('localhost', 0),
64 request_handler=DummyRequestHandler,
65):
66 return HTTPSServer(
67 address, request_handler,
68 certfile=certfile, keyfile=keyfile, password=password
69 )
70
71
72class TestSSLDisabled(unittest.TestCase):

Callers 4

runMethod · 0.85
test_valid_certdataMethod · 0.85
test_invalid_certdataMethod · 0.85

Calls 1

HTTPSServerClass · 0.90

Tested by

no test coverage detected