MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / dispatch

Method dispatch

src/core/http/middleware/body_save.py:19–24  ·  view source on GitHub ↗
(self, request: Request, call_next: Callable)

Source from the content-addressed store, hash-verified

17 self.hash_service = hash_service
18
19 async def dispatch(self, request: Request, call_next: Callable) -> Response:
20 body = await request.body()
21 request_id = str(self.hash_service.uuid4())
22 request.state.request_id = request_id
23 request.state.body = body
24 return await call_next(request)

Callers

nothing calls this directly

Calls 1

uuid4Method · 0.80

Tested by

no test coverage detected