- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 09 Feb 2021 08:24:29 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1165@github.com>
This makes some rather big changes: * Requests no longer have a synchronous flag. Blocking a thread is now up to the caller. * Fetch therefore no longer returns a response directly. In parallel callers will need to pass in "callbacks" that are either invoked on a parallel queue or on an event loop. * To hold onto these callbacks as well as some other information a fetch params struct is now passed around the various fetch algorithms. This will allow for cleanup around termination and aborting in the future. Potentially some bookkeeping state from request can move there going forward. * There's a dedicated navigate-redirect fetch algorithm for HTML as the HTTP-redirect fetch algorithm now wants a fetch params instance. * Some allowance for aborting early on in fetch was removed as all that is run synchronously with the code that invoked fetch to begin with. Closes #1164. * Algorithms that needed to be adjusted were changed to use the new Infra patterns for parameters. I also tried to improve naming, e.g., makeCORSPreflight rather than CORS-preflight flag. Fixes #536. You can view, comment on, or merge this pull request online at: https://github.com/whatwg/fetch/pull/1165 -- Commit Summary -- * Overhaul how standards integrate with fetch -- File Changes -- M fetch.bs (705) -- Patch Links -- https://github.com/whatwg/fetch/pull/1165.patch https://github.com/whatwg/fetch/pull/1165.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1165
Received on Tuesday, 9 February 2021 16:24:41 UTC