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

Method request

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

Source from the content-addressed store, hash-verified

129 threading_helper.threading_cleanup(*self._threads)
130
131 def request(self, uri, method='GET', body=None, headers={}):
132 self.connection = http.client.HTTPConnection(self.HOST, self.PORT)
133 self.connection.request(method, uri, body, headers)
134 return self.connection.getresponse()
135
136
137class BaseHTTPServerTestCase(BaseTestCase):

Callers 15

test_commandMethod · 0.45
test_handlerMethod · 0.45
test_latin1_headerMethod · 0.45
test_send_errorMethod · 0.45
requestMethod · 0.45
test_getMethod · 0.45

Calls 1

getresponseMethod · 0.45

Tested by

no test coverage detected