Skip to content

Refactor URLSessionHTTPClient out of HTTPClient#127

Open
guoye-zhang wants to merge 3 commits intoapple:mainfrom
guoye-zhang:urlsession-client
Open

Refactor URLSessionHTTPClient out of HTTPClient#127
guoye-zhang wants to merge 3 commits intoapple:mainfrom
guoye-zhang:urlsession-client

Conversation

@guoye-zhang
Copy link
Contributor

Several changes in this PR:

  1. Refactored URLSessionHTTPClient into its own target
  2. URLSessionHTTPClient, URLSessionRequestOptions, and URLSessionConnectionPoolConfiguration are now public types
  3. Renamed AsyncHTTPClientConformance into AHCHTTPClient since it sounds too similar to HTTPClientConformance which is a test suite
  4. DefaultHTTPClient is now backed by AHC on Linux

@guoye-zhang guoye-zhang added the ⚠️ semver/major Breaks existing public API. label Mar 7, 2026
@guoye-zhang
Copy link
Contributor Author

The Linux test failure appears to be a preexisting issue on main:

✘ Test conformance() recorded an issue at HTTPClientConformance.swift:97:33: Caught error: I/O on closed channel
↳ .test304WithContentLength

@fabianfett @xbhatnag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ semver/major Breaks existing public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant