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 Trailers advertised in Response type but unavailable in runtime #16200

Closed
aaronhuggins opened this issue Oct 7, 2022 · 0 comments · Fixed by #17284
Closed

HTTP Trailers advertised in Response type but unavailable in runtime #16200

aaronhuggins opened this issue Oct 7, 2022 · 0 comments · Fixed by #17284
Labels
bug Something isn't working correctly ext/fetch related to the ext/fetch

Comments

@aaronhuggins
Copy link

I was investigating the use of HTTP trailers but I've found that they are not implemented in the runtime.

The feature exists in types here:

readonly trailer: Promise<Headers>;

Reproduction example:

const res = await fetch('https://reqres.in/api/users/2')
const trailers = await res.trailer
console.log(trailers.has('what'))

Suggestion:
Remove the class member until it has been implemented; alternatively, throw a more explanatory error indicating implementation status.

@dsherret dsherret added bug Something isn't working correctly ext/fetch related to the ext/fetch labels Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly ext/fetch related to the ext/fetch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants