Files
swift-mirror/utils/swift_build_support
Zhenchao Li ed6ef79b51 Add brotli support to FoundationNetworking (#83441)
<!--
If this pull request is targeting a release branch, please fill out the
following form:

https://github.com/swiftlang/.github/blob/main/PULL_REQUEST_TEMPLATE/release.md?plain=1

Otherwise, replace this comment with a description of your changes and
rationale. Provide links to external references/discussions if
appropriate.
If this pull request resolves any GitHub issues, link them like so:

  Resolves <link to issue>, resolves <link to another issue>.

For more information about linking a pull request to an issue, see:

https://docs.github.com/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
-->

<!--
Before merging this pull request, you must run the Swift continuous
integration tests.
For information about triggering CI builds via @swift-ci, see:

https://github.com/apple/swift/blob/main/docs/ContinuousIntegration.md#swift-ci

Thank you for your contribution to Swift!
-->

Add brotli as a dependency to enable brotli decoding for curl.

brotli is a general purpose compression algorithm used extensively on
web. (https://datatracker.ietf.org/doc/html/rfc7932)

brotli support for curl is enabled by integrating the brotli compression
library (https://github.com/google/brotli). I've also added some tests
for FoundationNetworking in
https://github.com/swiftlang/swift-corelibs-foundation/pull/5251 which
exercises this feature by
- looking at the accept-encoding http header 
- decoding a brotli encoded payload
2025-10-10 15:52:40 -07:00
..

swift_build_support

swift_build_support is a Python module containing functions and data structures used by the Swift build script.

You may run unit tests for swift_build_support from the command line:

$ python3 utils/swift_build_support/run_tests.py