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

Add protocols option #31

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Add protocols option #31

wants to merge 2 commits into from

Conversation

rniii
Copy link

@rniii rniii commented Mar 14, 2024

Adds an option to set Sec-WebSocket-Protocol, which requests a sub-protocol to a server

On web, since its not possible to set any headers when opening a request, this may also be (hackishly) used for authorization

it prevents you from using the options struct at all, even with a ..Default::default()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant