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

Method request

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

Source from the content-addressed store, hash-verified

127 threading_helper.threading_cleanup(*self._threads)
128
129 def request(self, uri, method='GET', body=None, headers={}):
130 self.connection = http.client.HTTPConnection(self.HOST, self.PORT)
131 self.connection.request(method, uri, body, headers)
132 return self.connection.getresponse()
133
134
135class 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