Skip to content

📝 Add API reference page for fastapi.sse#15930

Open
SAURABHSALVE wants to merge 1 commit into
fastapi:masterfrom
SAURABHSALVE:docs/add-sse-api-reference
Open

📝 Add API reference page for fastapi.sse#15930
SAURABHSALVE wants to merge 1 commit into
fastapi:masterfrom
SAURABHSALVE:docs/add-sse-api-reference

Conversation

@SAURABHSALVE

@SAURABHSALVE SAURABHSALVE commented Jul 4, 2026

Copy link
Copy Markdown

The new SSE support (EventSourceResponse and ServerSentEvent in fastapi.sse) is already covered in the tutorial, but it doesn't have a dedicated page in the API Reference like the other public modules (such as responses, websockets, and templating).

This PR adds a new docs/en/docs/reference/sse.md page following the same pattern as the existing reference pages. It includes ::: directives for EventSourceResponse and ServerSentEvent, and adds the page to the navigation alongside the other response-related reference pages.

I didn't include format_sse_event for now because the tutorial currently documents only the two public classes. If you'd prefer it to be part of the API reference as well, I'm happy to add it.

I also verified that the documentation builds successfully locally without any warnings, and the generated page correctly picks up the existing docstrings and Doc() annotations.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added the docs Documentation about how to use FastAPI label Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant