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

Method start_https_server

Lib/test/test_urllib2_localnet.py:501–510  ·  view source on GitHub ↗
(self, responses=None, **kwargs)

Source from the content-addressed store, hash-verified

499 return handler
500
501 def start_https_server(self, responses=None, **kwargs):
502 if not hasattr(urllib.request, 'HTTPSHandler'):
503 self.skipTest('ssl support required')
504 from test.ssl_servers import make_https_server
505 if responses is None:
506 responses = [(200, [], b"we care a bit")]
507 handler = GetRequestHandler(responses)
508 server = make_https_server(self, handler_class=handler, **kwargs)
509 handler.port = server.port
510 return handler
511
512
513 def test_redirection(self):

Callers 2

test_httpsMethod · 0.95
test_https_sniMethod · 0.95

Calls 4

make_https_serverFunction · 0.90
hasattrFunction · 0.85
GetRequestHandlerFunction · 0.85
skipTestMethod · 0.80

Tested by

no test coverage detected