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

Expose some HTTP functionality useful for websocket code #2579

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

p12tic
Copy link
Contributor

@p12tic p12tic commented Dec 14, 2024

This PR exposes some HTTP functionality that will useful for websocket code. The PR essentially takes two commits from #2552 so that it's easier to review and land the PR.

Websocket protocol handshake uses HTTP, thus it makes sense to reuse at
least some of the abstractions and API style.
Websocket client connection starts by a plain HTTP request with some
websocket-specific headers. Due to this similarity it makes sense to
reuse existing HTTP code when implementing websocket client in the
future. For that at least request_line() and write_request_headers() are
required.

These functions are accessible to existing HTTP client code due to
friend class experimental::connection being present.
@p12tic
Copy link
Contributor Author

p12tic commented Dec 14, 2024

cc @xemul This PR is part of #2552 with your comments addressed.

@p12tic
Copy link
Contributor Author

p12tic commented Dec 23, 2024

@xemul Just a friendly ping.

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.

1 participant