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

Method request_callable

tornado/test/routing_test.py:186–192  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

184 app = Application()
185
186 def request_callable(request):
187 request.connection.write_headers(
188 ResponseStartLine("HTTP/1.1", 200, "OK"),
189 HTTPHeaders({"Content-Length": "2"}),
190 )
191 request.connection.write(b"OK")
192 request.connection.finish()
193
194 router = CustomRouter()
195 router.add_routes(

Callers

nothing calls this directly

Calls 5

ResponseStartLineClass · 0.90
HTTPHeadersClass · 0.90
write_headersMethod · 0.45
writeMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected