Skip to content

Commit

Permalink
Add baize.asgi.FileResponse to docs (#1696)
Browse files Browse the repository at this point in the history
  • Loading branch information
abersheeran committed Jun 16, 2022
1 parent f693e68 commit f958007
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/responses.md
Expand Up @@ -188,3 +188,7 @@ async def app(scope, receive, send):
#### [EventSourceResponse](https://github.com/sysid/sse-starlette)

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.

#### [baize.asgi.FileResponse](https://baize.aber.sh/asgi#fileresponse)

As a smooth replacement for Starlette [`FileResponse`](https://www.starlette.io/responses/#fileresponse), it will automatically handle [Head method](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Methods/HEAD) and [Range requests](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Range_requests).

0 comments on commit f958007

Please sign in to comment.