]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Update responses.md (#1069)
authorPax <13646646+paxcodes@users.noreply.github.com>
Sat, 18 Sep 2021 10:38:52 +0000 (03:38 -0700)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 10:38:52 +0000 (12:38 +0200)
- 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 <marcelotryle@gmail.com>
docs/responses.md

index c4cd84ed329605829955b46a78ac4c77f8f6c587..5284ac5044a8fae78a114ebc135e7fc29b725846 100644 (file)
@@ -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.