-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Document the Headers class #17
Comments
I cannot even get the request headers. It either ends up empty or undefined. |
Related I think to this issue from the archived docs cloudflare/workers-docs#954 |
@Apro123 the example code seems to be working |
interesting. I have been passing the request object from method to method, so maybe the headers get stripped somewhere, although that might be impossible. I will have to investigate the issue. Thanks @davidtsong |
The example here seems to be broken:
|
The Headers class is pretty straightforward, but its behavior is the source of some frequently asked questions. We should document its behavior in at least these regards:
", "
.Headers.getAll()
function, but only for the Set-Cookie header (it throws if you try to access anything else). You can read the saga behind this here: Use case for Headers getAll whatwg/fetch#973/cc @ispivey
The text was updated successfully, but these errors were encountered: