Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContainerRegistry: Switch to swift-http-types #11

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

euanh
Copy link
Collaborator

@euanh euanh commented Oct 3, 2024

Motivation

Swift HTTP Types provides currency types for HTTP clients and servers, which can be used with URLSession and AsyncHTTPClient.

Generally speaking, we try to keep Swift Container Plugin's dependencies to a minimum because each dependency increases the initial build time and also increases the chance of a version conflict with the project which is trying to use the plugin. However swift-http-types is quite a small package and offers some nice ergonomic improvements over URLRequest/URLResponse, such as enums for HTTP status codes.

Modifications

Switch all uses of URLRequest/URLResponse to HTTPRequest/HTTPResponse

Result

No functional change.

Test Plan

The unit and integration tests continue to pass.

@euanh euanh marked this pull request as draft October 3, 2024 12:42
@euanh euanh force-pushed the use-swift-http-types branch from 818f647 to 861282b Compare October 3, 2024 13:54
@euanh euanh marked this pull request as ready for review October 3, 2024 13:55
@euanh euanh force-pushed the use-swift-http-types branch 3 times, most recently from f0c6ec0 to fcd4884 Compare October 4, 2024 11:09
@euanh euanh force-pushed the use-swift-http-types branch from fcd4884 to f587ec9 Compare October 4, 2024 11:19
@euanh euanh merged commit 345cd61 into apple:main Oct 4, 2024
13 checks passed
@euanh euanh deleted the use-swift-http-types branch October 4, 2024 11:26
@euanh euanh added the semver/none No version bump required. label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant