Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking issue #1

Open
lucacasonato opened this issue Feb 7, 2025 · 1 comment
Open

Tracking issue #1

lucacasonato opened this issue Feb 7, 2025 · 1 comment

Comments

@lucacasonato
Copy link
Member

lucacasonato commented Feb 7, 2025

This issue links out to all the different parts of the spec that we need to investigate changes in (that we have found so far):

There are also some features we have identified as possibly being useful:

  • Trailers
  • HTTP Upgrade API
  • Letting users set content-length for HTTP streams
  • API to receive interim responses (100 / 101 status code)
  • Allowing async iterables in request / response bodies
  • Disabling automatic response body decompression
@andreubotella
Copy link
Member

"Main fetch" algorithm:

  • Steps 4, 5, 6 are related to CSP and HTTPS requests, don't implement in the server side
  • Step 7 also deals with bad ports, see Should we block bad ports? #10
  • Steps 8, 9 are about referrer, there's no referrer on the server
  • Step 10 is about HTTPs redirection, especially with HSTS. For CLI applications, redirecting to HTTPS if we've previously seen the HSTS headers would be nice, but not as important as for browsers. Also do we want to need the storage?
  • Step 12 deals with CORS and response tainting.
    • We might want to just replace it with:
      1. Set request’s response tainting to "basic".
      2. Return the result of running scheme fetch given fetchParams.
    • Basic tainting is what removes the forbidden response headers from a response.
  • Step 17: Related to resource and navigation timing; see "fetch response handover". No need to implement.
  • Step 18: probably only for browsers
  • Step 19 is related to CSP and HTTPS, don't implement in the server side (same as 4,5,6)
  • Step 20 shouldn't apply if we've set response tainting to basic

"Fetch response handover":

  • Steps 1, 2 are about resource and navigation timing, exposed as part of performance but not in the minimum common API. Server-side runtimes shouldn't need to implement, but maybe they could anyway.
  • Steps 3.3 and 3.4.3 seems to all be about resource and navigation timing as well, no need to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants