Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/content/docs/workers/runtime-apis/fetch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function eventHandler(event) {



* <code>fetch(resource, options optional)</code> : Promise`<Response>`
* <code>fetch(request, options optional)</code> : Promise`<Response>`

* Fetch returns a promise to a Response.

Expand All @@ -72,7 +72,7 @@ async function eventHandler(event) {



* [`resource`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#resource) Request | string | URL
* [`request`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#request) Request | string | URL

* `options` options
* `cache` `undefined | 'no-store'` optional
Expand Down Expand Up @@ -124,4 +124,4 @@ export default {
* [Example: Fetch HTML](/workers/examples/fetch-html/)
* [Example: Fetch JSON](/workers/examples/fetch-json/)
* [Example: cache using Fetch](/workers/examples/cache-using-fetch/)
* Write your Worker code in [ES modules syntax](/workers/reference/migrate-to-module-workers/) for an optimized experience.
* Write your Worker code in [ES modules syntax](/workers/reference/migrate-to-module-workers/) for an optimized experience.
Loading