Skip to content

Commit f958007

Browse files
authored
Add baize.asgi.FileResponse to docs (#1696)
1 parent f693e68 commit f958007

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/responses.md

+4
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,7 @@ async def app(scope, receive, send):
188188
#### [EventSourceResponse](https://github.com/sysid/sse-starlette)
189189

190190
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.
191+
192+
#### [baize.asgi.FileResponse](https://baize.aber.sh/asgi#fileresponse)
193+
194+
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 commit comments

Comments
 (0)