Skip to content

Commit

Permalink
update fetch guide (#34278)
Browse files Browse the repository at this point in the history
* update fetch guide

* tiny wording fix

* Remove duplicate clause

* Explain a bit about headers and bodies

* Add a note about SameSite

* Add a simpler streaming example;fix UTF-8 handling in the more complicated one

* Update files/en-us/web/api/fetch_api/using_fetch/index.md

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

* Reinstate para about XHR

* Delete basic concepts guide

* Remove link to deleted page

* Update files/en-us/web/api/fetch_api/using_fetch/index.md

* Update files/en-us/web/api/fetch_api/using_fetch/index.md

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

* Update files/en-us/web/api/fetch_api/using_fetch/index.md

Co-authored-by: sideshowbarker <mike@w3.org>

* Update files/en-us/web/api/fetch_api/using_fetch/index.md

Co-authored-by: sideshowbarker <mike@w3.org>

---------

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sideshowbarker <mike@w3.org>
  • Loading branch information
3 people committed Jun 28, 2024
1 parent f09223e commit f2426e7
Show file tree
Hide file tree
Showing 7 changed files with 411 additions and 418 deletions.
2 changes: 2 additions & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3584,6 +3584,7 @@
/en-US/docs/Glossary/GZip /en-US/docs/Glossary/gzip_compression
/en-US/docs/Glossary/Global_attribute /en-US/docs/Web/HTML/Global_attributes
/en-US/docs/Glossary/Grid_Rows /en-US/docs/Glossary/Grid_Row
/en-US/docs/Glossary/Guard /en-US/docs/Web/API/Fetch_API/Using_Fetch
/en-US/docs/Glossary/Hash_function /en-US/docs/Glossary/Cryptographic_hash_function
/en-US/docs/Glossary/Header /en-US/docs/Glossary/HTTP_header
/en-US/docs/Glossary/I18N /en-US/docs/Glossary/Internationalization
Expand Down Expand Up @@ -8171,6 +8172,7 @@
/en-US/docs/Web/API/FetchSignal /en-US/docs/Web/API/AbortSignal
/en-US/docs/Web/API/FetchSignal/aborted /en-US/docs/Web/API/AbortSignal/aborted
/en-US/docs/Web/API/FetchSignal/onabort /en-US/docs/Web/API/AbortSignal/abort_event
/en-US/docs/Web/API/Fetch_API/Basic_concepts /en-US/docs/Web/API/Fetch_API/Using_Fetch
/en-US/docs/Web/API/File.lastModifiedDate /en-US/docs/Web/API/File/lastModifiedDate
/en-US/docs/Web/API/File.name /en-US/docs/Web/API/File/name
/en-US/docs/Web/API/File.size /en-US/docs/Web/API/Blob/size
Expand Down
19 changes: 0 additions & 19 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -2637,10 +2637,6 @@
"modified": "2020-03-26T14:30:59.270Z",
"contributors": ["mfuji09", "j9t", "teoli", "rachelandrew"]
},
"Glossary/Guard": {
"modified": "2019-01-16T20:19:28.335Z",
"contributors": ["chrisdavidmills", "klez", "Andrew_Pfeiffer", "kscarfone"]
},
"Glossary/Gutters": {
"modified": "2019-03-23T22:16:42.903Z",
"contributors": ["Verger", "teoli", "rachelandrew"]
Expand Down Expand Up @@ -34969,21 +34965,6 @@
"kscarfone"
]
},
"Web/API/Fetch_API/Basic_concepts": {
"modified": "2020-02-18T19:55:22.051Z",
"contributors": [
"jswisher",
"Sheppy",
"sideshowbarker",
"LurN",
"parambirs",
"chrisdavidmills",
"gapple",
"lawrencekgrant",
"gbharatwaj",
"smarvin"
]
},
"Web/API/Fetch_API/Cross-global_fetch_usage": {
"modified": "2020-10-06T03:40:09.140Z",
"contributors": ["ralflang", "mfluehr", "piotrekwitek", "chrisdavidmills"]
Expand Down
9 changes: 0 additions & 9 deletions files/en-us/glossary/guard/index.md

This file was deleted.

69 changes: 0 additions & 69 deletions files/en-us/web/api/fetch_api/basic_concepts/index.md

This file was deleted.

3 changes: 1 addition & 2 deletions files/en-us/web/api/fetch_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Once a {{DOMxRef("Response")}} is retrieved, there are a number of methods avail

You can create a request and response directly using the {{DOMxRef("Request.Request", "Request()")}} and {{DOMxRef("Response.Response", "Response()")}} constructors, but it's uncommon to do this directly. Instead, these are more likely to be created as results of other API actions (for example, {{DOMxRef("FetchEvent.respondWith()")}} from service workers).

Find out more about using the Fetch API features in [Using Fetch](/en-US/docs/Web/API/Fetch_API/Using_Fetch), and study concepts in [Fetch basic concepts](/en-US/docs/Web/API/Fetch_API/Basic_concepts).
Find out more about using the Fetch API features in [Using Fetch](/en-US/docs/Web/API/Fetch_API/Using_Fetch).

## Fetch Interfaces

Expand Down Expand Up @@ -49,4 +49,3 @@ Find out more about using the Fetch API features in [Using Fetch](/en-US/docs/We
- [HTTP access control (CORS)](/en-US/docs/Web/HTTP/CORS)
- [HTTP](/en-US/docs/Web/HTTP)
- [Fetch polyfill](https://github.com/github/fetch)
- [Fetch basic concepts](/en-US/docs/Web/API/Fetch_API/Basic_concepts)
Loading

0 comments on commit f2426e7

Please sign in to comment.