IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

FastAPIRequestProtocol

FastAPIRequestProtocol​

class max.pipelines.request.FastAPIRequestProtocol(*args, **kwargs)

source

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.

app​

app: _App

source

body()​

async body()

source

Return the request body as bytes.

Return type:

bytes

state​

state: _RequestState

source