Skip to content

Support for HTTP clients#1084

Open
TwentyPast4 wants to merge 42 commits into
zaphoyd:developfrom
TroniusGaming:master
Open

Support for HTTP clients#1084
TwentyPast4 wants to merge 42 commits into
zaphoyd:developfrom
TroniusGaming:master

Conversation

@TwentyPast4

@TwentyPast4 TwentyPast4 commented Jan 26, 2023

Copy link
Copy Markdown

Going over the available library options, I noticed there's no good pick for having both HTTP and WS in both client and server roles, which were developed to a point where it would be nice to use. I guess boost beast was closest.
Websocketpp is great - and written such that I could relatively easily add HTTP client support to it.

That said, this implementation is not perfect and was tailored to my specific use cases, so the PR might include other changes which might not be directly related or desired. I'm opening the PR for the purpose of presenting a working example on how it could be done and to signal the need for such a feature. Feel free to suggest changes in written form or commit form here or the source repo respectively.

@TwentyPast4 TwentyPast4 changed the base branch from master to develop January 26, 2023 10:00
TwentyPast4 and others added 14 commits April 15, 2024 11:09
…loak-in-jackpot-server-and-client

feat(jackpot): Support keycloak in jackpot server and client (SW-1007)
…s (SW-5612)

* Replace the single-pass chunked decoder that ended after the first
  chunk and mishandled framing bytes split across socket reads.
* Buffer incoming data and decode complete chunks incrementally,
  retaining partial chunk-size lines and inter-chunk CRLFs until the
  next read; finish only on the terminal zero-length chunk.
* Make response::on_parsing_completed idempotent and gate completion on
  body_ready() so chunked bodies are not closed prematurely.
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.

4 participants