-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add response constructors #64
Conversation
@@ -6,6 +6,7 @@ type body | |||
type bodyInit | |||
type headers | |||
type headersInit | |||
type responseInit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure if I should add alias the types from the top level or not as it says they are here for compatibility purposes. Let me know if I should remove them 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine. We can re-evaluate these for the eventual rewrite of the bindings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I wonder why the Response
methods were not wrapped in decoders while the Request
methods were 🤔 since we're updating it anyway, can you please add one for Response.type_
so it matches what happens with Request.type_
? I don't think any of the others need a decoder.
[edit] I was wrong, see below
@@ -6,6 +6,7 @@ type body | |||
type bodyInit | |||
type headers | |||
type headersInit | |||
type responseInit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine. We can re-evaluate these for the eventual rewrite of the bindings.
Oh I just read your other PR 🤣 [edit] never mind response type is an entirely different concept, I should read the specs before commenting... |
I forgot to ask for a changelog, but I'll add it before publishing the release |
Published as 0.3.0 |
Closes #63