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

Request mode doesn't have websocket option #14785

Closed
mattnenterprise opened this issue Dec 30, 2016 · 4 comments
Closed

Request mode doesn't have websocket option #14785

mattnenterprise opened this issue Dec 30, 2016 · 4 comments

Comments

@mattnenterprise
Copy link
Contributor

@mattnenterprise mattnenterprise commented Dec 30, 2016

RequestMode in components/net_traits/request.rs could possibly have the value of "websocket" according to the spec. Currently RequestMode doesn't have the option of being websocket so it should be added.

@jdm jdm added the A-network label Dec 30, 2016
@dowoncha
Copy link

@dowoncha dowoncha commented Dec 31, 2016

Is it as simple as adding WebSocket to the RequestMode enum?

@jdm
Copy link
Member

@jdm jdm commented Dec 31, 2016

Yes.

@dowoncha dowoncha mentioned this issue Jan 6, 2017
4 of 5 tasks complete
@dowoncha
Copy link

@dowoncha dowoncha commented Jan 6, 2017

PR Link #14895

@jdm jdm added the C-assigned label Jan 6, 2017
@dowoncha
Copy link

@dowoncha dowoncha commented Jan 7, 2017

Adding the WebSocket enum variant now triggers implementation error in dom/request.rs. Tried to add match case in dom/request.rs but since variant isn't included in bindings, cannot add it in. Ideas?

bors-servo added a commit that referenced this issue Jan 8, 2017
Added Websocket to RequestMode enum

Added Websocket to RequestMode enum
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #14785  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because matching the enum should have default control flow.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14895)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.