MCPcopy
hub / github.com/tornadoweb/tornado / connect

Method connect

tornado/test/httpserver_test.py:966–968  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

964 # The next few methods are a crude manual http client
965 @gen.coroutine
966 def connect(self):
967 self.stream = IOStream(socket.socket())
968 yield self.stream.connect(("127.0.0.1", self.get_http_port()))
969
970 @gen.coroutine
971 def read_headers(self):

Callers 15

test_two_requestsMethod · 0.95
test_request_closeMethod · 0.95
test_http10Method · 0.95
test_http10_keepaliveMethod · 0.95
test_pipelined_cancelMethod · 0.95
raw_fetchMethod · 0.45

Calls 2

IOStreamClass · 0.90
get_http_portMethod · 0.45

Tested by

no test coverage detected