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

Upgrade to OkHttp 4 #7

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

rtyley
Copy link
Owner

@rtyley rtyley commented Nov 2, 2023

This upgrade was prompted by guardian/prout#114, where @AshCorr noted that updating to OkHttp 4 was blocked by play-git-hubs use of OkHttp's internal HttpDate class.

Thankfully the java.time package offers the RFC_1123_DATE_TIME date time formatter, which looks to be a good substitute for parsing the Date header returned by the GitHub API, so we can move play-git-hub on to the latest OkHttp!

@rtyley rtyley force-pushed the remove-use-of-okhttp-internal-class-HttpDate branch 2 times, most recently from 9580732 to 5b75bf4 Compare November 2, 2023 16:38
This upgrade was prompted by guardian/prout#114,
where Ash noted that updating to OkHttp 4 was blocked by `play-git-hub`s
use of OkHttp 's internal `HttpDate` class.

Thankfully the `java.time` package offers the `RFC_1123_DATE_TIME`
date time formatter, which looks to be a good substitute for parsing
the `Date` header returned by the GitHub API.

https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#RFC_1123_DATE_TIME
@rtyley rtyley force-pushed the remove-use-of-okhttp-internal-class-HttpDate branch from 5b75bf4 to c4a25ee Compare November 2, 2023 16:42
Copy link
Contributor

@AshCorr AshCorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Didn't realize you were the owner of this Scala package! Couldn't find the repo anywhere!

@rtyley rtyley merged commit 68636f3 into master Nov 8, 2023
1 check passed
@rtyley rtyley deleted the remove-use-of-okhttp-internal-class-HttpDate branch November 8, 2023 16:21
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.

None yet

2 participants