MCPcopy Index your code
hub / github.com/python/cpython / request

Method request

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

Source from the content-addressed store, hash-verified

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

Callers 1

test_getMethod · 0.95

Calls 2

requestMethod · 0.45
getresponseMethod · 0.45

Tested by

no test coverage detected