Method
dispatch
(
self,
request: Request,
call_next: RequestResponseEndpoint,
)
Source from the content-addressed store, hash-verified
| 1025 | |
| 1026 | class LogRequestBodySize(BaseHTTPMiddleware): |
| 1027 | async def dispatch( |
| 1028 | self, |
| 1029 | request: Request, |
| 1030 | call_next: RequestResponseEndpoint, |
| 1031 | ) -> Response: |
| 1032 | print(len(await request.body())) |
| 1033 | return await call_next(request) |
| 1034 | |
| 1035 | def replace_body_middleware(app: ASGIApp) -> ASGIApp: |
| 1036 | async def wrapped_app(scope: Scope, receive: Receive, send: Send) -> None: |
Callers
nothing calls this directly
Tested by
no test coverage detected