@@ -7,13 +7,13 @@ sidebarTitle: http
77
88## Functions
99
10- ### ` set_http_request ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L77 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
10+ ### ` set_http_request ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L81 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
1111
1212``` python
1313set_http_request(request: Request) -> Generator[Request, None , None ]
1414```
1515
16- ### ` create_base_app ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L110 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
16+ ### ` create_base_app ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L114 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
1717
1818``` python
1919create_base_app(routes: list[BaseRoute], middleware: list[Middleware], debug: bool = False , lifespan: Callable | None = None ) -> StarletteWithLifespan
@@ -32,7 +32,7 @@ Create a base Starlette app with common middleware and routes.
3232- A Starlette application
3333
3434
35- ### ` create_sse_app ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L138 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
35+ ### ` create_sse_app ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L142 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
3636
3737``` python
3838create_sse_app(server: FastMCP[LifespanResultT], message_path: str , sse_path: str , auth: AuthProvider | None = None , debug: bool = False , routes: list[BaseRoute] | None = None , middleware: list[Middleware] | None = None ) -> StarletteWithLifespan
@@ -54,7 +54,7 @@ Returns:
5454 A Starlette application with RequestContextMiddleware
5555
5656
57- ### ` create_streamable_http_app ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L265 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
57+ ### ` create_streamable_http_app ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L269 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
5858
5959``` python
6060create_streamable_http_app(server: FastMCP[LifespanResultT], streamable_http_path: str , event_store: EventStore | None = None , retry_interval: int | None = None , auth: AuthProvider | None = None , json_response: bool = False , stateless_http: bool = False , debug: bool = False , routes: list[BaseRoute] | None = None , middleware: list[Middleware] | None = None ) -> StarletteWithLifespan
@@ -89,17 +89,17 @@ disconnections. Requires event_store to be set. Defaults to SDK default.
8989ASGI application wrapper for Streamable HTTP server transport.
9090
9191
92- ### ` StarletteWithLifespan ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L70 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
92+ ### ` StarletteWithLifespan ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L74 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
9393
9494** Methods:**
9595
96- #### ` lifespan ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L72 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
96+ #### ` lifespan ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L76 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
9797
9898``` python
9999lifespan(self ) -> Lifespan[Starlette]
100100```
101101
102- ### ` RequestContextMiddleware ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L85 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
102+ ### ` RequestContextMiddleware ` <sup ><a href = " https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/http.py#L89 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
103103
104104
105105Middleware that stores each request in a ContextVar and sets transport type.
0 commit comments