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

http.headers.Trailer - reading trailers not supported by Fetch API #14703

Open
lidel opened this issue Jan 28, 2022 · 1 comment
Open

http.headers.Trailer - reading trailers not supported by Fetch API #14703

lidel opened this issue Jan 28, 2022 · 1 comment
Labels
data:http 🚠 Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP

Comments

@lidel
Copy link

lidel commented Jan 28, 2022

What information was incorrect, unhelpful, or incomplete?

Trailer support table suggests "trailers" are supported by all browsers:

2022-01-28_19-50

THIS IS NOT TRUE: trailers are not supported at all.

The current state is harmful: having Trailer header marked as green in that table suggests this is a usable feature, but reading trailers is not supported by Fetch API in any browser.

Readers expect to be able to act on trailers advertised in that header, and they waste hours trying to figure out what they do wrong, only to find that... no major browser engine supports reading trailers via Fetch API (from JS):

What did you expect to see?

  • Remove confusing "Full support", or at least rename that row to "Trailer (HTTP header to indicate trailers to expect)" or similar
  • Add new row that shows broken status for "Reading announced trailer headers with Fetch API" in all browsers

Did you test this? If so, how?

MDN page report details
@lidel lidel changed the title http.headers.Trailer - not supported by Fetch API http.headers.Trailer - reading trailers not supported by Fetch API Jan 28, 2022
@queengooborg queengooborg added the data:http 🚠 Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP label Jan 29, 2022
@kmannislands
Copy link

kmannislands commented Feb 16, 2022

+1 for this. Fairly misleading support table, definitely needs a heavy caveat!

Noticed that trailers are documented but red here in the Response doc but that seems rather subtle and there's no note anywhere or mention in the support table: https://developer.mozilla.org/en-US/docs/Web/API/Response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:http 🚠 Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP
Projects
None yet
Development

No branches or pull requests

3 participants