MCPcopy
hub / github.com/encode/starlette / wrapped_rcv

Function wrapped_rcv

tests/middleware/test_base.py:1037–1040  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1035 def replace_body_middleware(app: ASGIApp) -> ASGIApp:
1036 async def wrapped_app(scope: Scope, receive: Receive, send: Send) -> None:
1037 async def wrapped_rcv() -> Message:
1038 msg = await receive()
1039 msg["body"] += b"-foo"
1040 return msg
1041
1042 await app(scope, wrapped_rcv, send)
1043

Callers

nothing calls this directly

Calls 1

receiveFunction · 0.70

Tested by

no test coverage detected