8000 Odd format for fetch callbacks · Issue #536 · whatwg/fetch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Odd format for fetch callbacks #536
Closed
@jyasskin

Description

@jyasskin

https://fetch.spec.whatwg.org/#fetch-method has:

  1. Run the following in parallel:

"process response" and "process response done" are defined as "Tasks that are queued by this standard are annotated as one of: ...", but they actually appear to be customization points within the Fetch algorithm for which the caller can provide an implementation. Assuming that's right, then:

  1. It doesn't make sense to say to run the fetch and its callbacks in parallel. Instead, we should run the fetch in parallel with the callbacks passed in.
  2. The callbacks need their defaults defined for when callers don't pass them in. I think the defaults are to be no-ops?
  3. The callbacks should be defined as customization points, not just annotations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0