MCPcopy Index your code
hub / github.com/python-websockets/websockets / http_response

Method http_response

tests/sync/test_client.py:196–197  ·  view source on GitHub ↗
(connection, request)

Source from the content-addressed store, hash-verified

194 """Client reads HTTP response."""
195
196 def http_response(connection, request):
197 return connection.respond(http.HTTPStatus.OK, "👌")
198
199 with run_server(process_request=http_response) as server:
200 with self.assertRaises(InvalidStatus) as raised:

Callers

nothing calls this directly

Calls 1

respondMethod · 0.45

Tested by

no test coverage detected