Skip to content

Commit

Permalink
Update fetch.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jul 22, 2024
1 parent 696f209 commit 599d27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ dns.prefetch("bun.sh", 443);

### Preconnect to a host

To preconnect to a host, you can use the `http.prefetch` API. This API is useful when you know you'll need to connect to a host soon and want to start the initial DNS lookup, TCP socket connection, and TLS handshake early.
To preconnect to a host, you can use the `fetch.preconnect` API. This API is useful when you know you'll need to connect to a host soon and want to start the initial DNS lookup, TCP socket connection, and TLS handshake early.

```ts
import { fetch } from "bun";
Expand Down

0 comments on commit 599d27d

Please sign in to comment.