Skip to content

Make AHCHTTPClient.HTTPClient.Reader's init public#176

Merged
guoye-zhang merged 2 commits into
apple:mainfrom
ehaydenr:ahc-writer-public-init
Jun 19, 2026
Merged

Make AHCHTTPClient.HTTPClient.Reader's init public#176
guoye-zhang merged 2 commits into
apple:mainfrom
ehaydenr:ahc-writer-public-init

Conversation

@ehaydenr

Copy link
Copy Markdown
Contributor

The Reader struct already exposes a public AsyncReader conformance, but its init(body:) was internal — so callers outside AHCHTTPClient could spell the type but couldn't construct one. Promoting the init to public lets out-of-package adapters wrap an HTTPClientResponse.Body directly.

The Reader struct already exposes a public AsyncReader conformance, but
its `init(body:)` was internal — so callers outside AHCHTTPClient could
spell the type but couldn't construct one. Promoting the init to public
lets out-of-package adapters wrap an `HTTPClientResponse.Body` directly.
@ehaydenr ehaydenr added the 🆕 semver/minor Adds new public API. label Jun 18, 2026
@guoye-zhang guoye-zhang enabled auto-merge (squash) June 19, 2026 01:03
@guoye-zhang guoye-zhang merged commit cdc5cfc into apple:main Jun 19, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants