Python class
FastAPIRequestProtocol
FastAPIRequestProtocolโ
class max.pipelines.request.FastAPIRequestProtocol(*args, **kwargs)
Bases: Protocol
Minimal protocol for FastAPI/Starlette Request objects.
This protocol defines the minimal interface needed from a FastAPI Request without requiring the fastapi dependency in the interfaces library.
body()โ
async body()
Return the request body as bytes.
-
Return type:
stateโ
state: _RequestState
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!