Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse BodyInit instead of SendParam, closes #9433 #9497
Conversation
highfive
commented
Feb 1, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @mbrubeck (or someone else) soon. |
highfive
commented
Feb 1, 2016
|
@fhahn Please claim the issue first before working on it. Duplicated efforts on the same issue would be a really nasty problem to have and I want to avoid it as much as possible. |
|
Sure, sorry about that.
|
|
@bors-servo r+ Code looks good to me, thanks for working on this! |
|
|
|
@bors-servo r- Sorry, spotted something. |
| use dom::bindings::codegen::Bindings::XMLHttpRequestBinding::XMLHttpRequestMethods; | ||
| use dom::bindings::codegen::Bindings::XMLHttpRequestBinding::XMLHttpRequestResponseType; | ||
| use dom::bindings::codegen::Bindings::XMLHttpRequestBinding::XMLHttpRequestResponseType::{Json, Text, _empty}; | ||
| use dom::bindings::codegen::UnionTypes::BlobOrStringOrURLSearchParams; | ||
| use dom::bindings::codegen::UnionTypes::BlobOrStringOrURLSearchParams::{eBlob, eString, eURLSearchParams}; |
This comment has been minimized.
This comment has been minimized.
KiChjang
Feb 1, 2016
Member
Is it possible to change this into dom::bindings::codegen::Bindings::XMLHttpRequestBinding::BodyInit::{eBlob, ...} instead?
This comment has been minimized.
This comment has been minimized.
nox
Feb 1, 2016
Member
I think it would be even better if we don't import them at all and we just qualify them with BodyInit, the name is shorter than before and that was kind of the point.
This comment has been minimized.
This comment has been minimized.
fhahn
Feb 2, 2016
Author
Contributor
@KiChjang unfortunately it does not seem possible. BodyInit is only a type alias to BlobOrStringOrURLSearchParams, so this yields import errors.
This comment has been minimized.
This comment has been minimized.
KiChjang
Feb 2, 2016
Member
Yeah, in which case, that match expression in the extract method down there would need BodyInit:: references.
This comment has been minimized.
This comment has been minimized.
KiChjang
Feb 2, 2016
Member
Hmm... this would be annoying, we might actually need to fix our codegen to support this kind of syntax.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
fhahn
Feb 2, 2016
Author
Contributor
@KiChjang yeah, using BodyInit:: does not work, even if BlobOrStringOrURLSearchParams is imported.
This comment has been minimized.
This comment has been minimized.
|
|
|
Is blocked on #9691 |
|
Now blocked on #10152. Almost there! |
|
No longer blocked! @fhahn are you able to continue working on this now? |
|
Closing due to inactivity. |
fhahn commentedFeb 1, 2016
This PR fixes #9433 uses BodyInit instead of SendParam as suggested.