-
Notifications
You must be signed in to change notification settings - Fork 115
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
err.headers standardization #27
Comments
Hey @jonathanong, yes, I have been reading the discussions on that thread and didn't have any objects to the conversation :) I think it makes sense to get it added here as a standard way, just like
Perhaps what we can do is let a user specify the headers in any case, but filter what actually get attached to the error objects as the As for setting Thoughts? |
So we should filter the names in this library? Or at the framework level? Or have this library have a "set headers from error" method? I think you're right about defaulting headers to undefined. I'm not sure what the practical difference is, but I see it as different intentions. Cool I think we're in agreement! |
It's also possible to it like the fetch API and let https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch |
For now I just added a documented mention of the |
koajs/koa#668
not sure how we can standardize this... last thing i want is for other people to use a different property name. also want all the text casing to be the same so people don't do:
maybe set
.headers = {}
by default?The text was updated successfully, but these errors were encountered: