Skip to content

Added HttpClient as argument to MTConnect Http Client classes - #263

Merged
PatrickRitchie merged 4 commits into
masterfrom
httpclient-default
Sep 28, 2026
Merged

PatrickRitchie merged 4 commits into
masterfrom
httpclient-default

Conversation

@PatrickRitchie

Copy link
Copy Markdown
Contributor

Allows to pass a custom HttpClient to use for Http requests

Allows to pass a custom HttpClient to use for Http requests
PatrickRitchie and others added 3 commits September 19, 2026 21:22
- Dispose no longer disposes the HttpClient, which is either supplied by
  the caller or the shared static default
- Accept / Accept-Encoding headers are now set per request instead of on
  HttpClient.DefaultRequestHeaders, preventing headers from accumulating
  on reconnect, leaking into other requests, and racing between streams

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PatrickRitchie
PatrickRitchie merged commit 5b4fa6f into master Sep 28, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant