Skip to content

Commit

Permalink
Update responses.md (encode#1069)
Browse files Browse the repository at this point in the history
- Fix typo ("Third party middleware" to "...responses")
- Fix w3 link (current link leads to 404; I followed links from archive.org to get the "latest" spec)
- Format it similarly to "Third party middleware" (use h4, use the class name as header)

Co-authored-by: Marcelo Trylesinski <[email protected]>
  • Loading branch information
paxcodes and Kludex authored Sep 18, 2021
1 parent 85ab09d commit 874ad46
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,8 @@ async def app(scope, receive, send):
await response(scope, receive, send)
```

## Third party middleware
## Third party responses

### [SSEResponse(EventSourceResponse)](https://github.com/sysid/sse-starlette)
#### [EventSourceResponse](https://github.com/sysid/sse-starlette)

Server Sent Response implements the ServerSentEvent Protocol: https://www.w3.org/TR/2009/WD-eventsource-20090421.
It enables event streaming from the server to the client without the complexity of websockets.
A response class that implements [Server-Sent Events](https://html.spec.whatwg.org/multipage/server-sent-events.html). It enables event streaming from the server to the client without the complexity of websockets.

0 comments on commit 874ad46

Please sign in to comment.