InboundRequestLoggingMiddleware Class
Pure-ASGI middleware that logs inbound HTTP requests.
Unlike BaseHTTPMiddleware, this passes the receive callable
through to the inner application untouched, preserving
request.is_disconnected() behaviour.
Wired automatically by AgentServerHost so that all protocol hosts (responses, invocations, etc.) get consistent inbound logging.
Constructor
InboundRequestLoggingMiddleware(app: Callable[[MutableMapping[str, Any], Callable[[], Awaitable[MutableMapping[str, Any]]], Callable[[MutableMapping[str, Any]], Awaitable[None]]], Awaitable[None]])
Parameters
| Name | Description |
|---|---|
|
app
Required
|
<xref:ASGIApp>
The inner ASGI application. |