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

Method http_response

tests/asyncio/test_client.py:418–419  ·  view source on GitHub ↗
(connection, request)

Source from the content-addressed store, hash-verified

416 """Client reads HTTP response."""
417
418 def http_response(connection, request):
419 return connection.respond(http.HTTPStatus.OK, "👌")
420
421 async with serve(*args, process_request=http_response) as server:
422 with self.assertRaises(InvalidStatus) as raised:

Callers

nothing calls this directly

Calls 1

respondMethod · 0.45

Tested by

no test coverage detected