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

Method __init__

src/core/http/middleware/body_save.py:11–17  ·  view source on GitHub ↗
(
        self,
        app: ASGIApp,
        hash_service: HashService,
    )

Source from the content-addressed store, hash-verified

9
10class BodySave(BaseHTTPMiddleware):
11 def __init__(
12 self,
13 app: ASGIApp,
14 hash_service: HashService,
15 ) -> None:
16 super().__init__(app=app)
17 self.hash_service = hash_service
18
19 async def dispatch(self, request: Request, call_next: Callable) -> Response:
20 body = await request.body()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected