aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-07 21:37:44 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-07 21:37:44 -0700
commit4b8425938ae6fcb739f6c294f964dd93a7bdda5f (patch)
tree4465dcc325f94624da390ea5f7b80b05b69a65b7
parent8fa3536aba1d679e13d56bbfad0d9c1e29e5727d (diff)
downloadbun-4b8425938ae6fcb739f6c294f964dd93a7bdda5f.tar.gz
bun-4b8425938ae6fcb739f6c294f964dd93a7bdda5f.tar.zst
bun-4b8425938ae6fcb739f6c294f964dd93a7bdda5f.zip
Update README.md
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4f4dd095f..b8183e692 100644
--- a/README.md
+++ b/README.md
@@ -165,7 +165,7 @@ await Bun.write("output.txt", Bun.file("input.txt"));
On Linux, this uses the [`copy_file_range`](https://man7.org/linux/man-pages/man2/copy_file_range.2.html) syscall and on macOS, this becomes `clonefile` (or [`fcopyfile`](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/copyfile.3.html)).
-`Bun.write` also supports `Response` objects.
+`Bun.write` also supports [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) objects, it automatically converts to a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob).
```js
// Eventually, this will stream the response to disk but today it buffers