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

Method request

Lib/test/test_httpservers.py:425–431  ·  view source on GitHub ↗
(self, uri, method='GET', body=None, headers={})

Source from the content-addressed store, hash-verified

423 self.assertEqual(response.status, HTTPStatus.OK)
424
425 def request(self, uri, method='GET', body=None, headers={}):
426 context = ssl._create_unverified_context()
427 self.connection = http.client.HTTPSConnection(
428 self.HOST, self.PORT, context=context
429 )
430 self.connection.request(method, uri, body, headers)
431 return self.connection.getresponse()
432
433 def test_valid_certdata(self):
434 valid_certdata= [

Callers 1

test_getMethod · 0.95

Calls 2

requestMethod · 0.45
getresponseMethod · 0.45

Tested by

no test coverage detected