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

Remove DateFormatter for HTTP headers, so we can use FoundationEssentials #650

Merged
merged 6 commits into from
Jan 8, 2025

Conversation

adam-fowler
Copy link
Member

@adam-fowler adam-fowler commented Jan 7, 2025

I've hidden date formatting behind two functions Date.init(httpHeader:) and Date.httpHeader as we still need the DateFormatter for Linux 5.x

HTTPHeaderDateFormatStyle takes the parsing strategy implementation from the one recently merged into swift-aws-lambda-runtime from @t089.

@adam-fowler adam-fowler requested a review from Joannis as a code owner January 7, 2025 12:11
Copy link

github-actions bot commented Jan 7, 2025

Sources/Hummingbird/Utils/DateCache.swift Show resolved Hide resolved
Sources/Hummingbird/Utils/RFC9110FormatStyle.swift Outdated Show resolved Hide resolved
Sources/Hummingbird/Utils/RFC9110FormatStyle.swift Outdated Show resolved Hide resolved
Sources/Hummingbird/Utils/RFC9110FormatStyle.swift Outdated Show resolved Hide resolved
Sources/Hummingbird/Utils/RFC9110FormatStyle.swift Outdated Show resolved Hide resolved
Sources/Hummingbird/Utils/RFC9110FormatStyle.swift Outdated Show resolved Hide resolved
@Joannis
Copy link
Member

Joannis commented Jan 7, 2025

Really great PR overall, just some minor tweaks

@adam-fowler
Copy link
Member Author

This will hopefully get merged into Foundation at some point. But while it isn't we can run with our own version.

@adam-fowler adam-fowler requested a review from Joannis January 7, 2025 17:02
@adam-fowler adam-fowler merged commit 6703c7c into main Jan 8, 2025
7 checks passed
@adam-fowler adam-fowler deleted the http-date-format-style branch January 8, 2025 07:32
bcbod2002 pushed a commit to bcbod2002/hummingbird that referenced this pull request Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants