question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace OkHttp with Methanol in `javalin-testtools` ?

See original GitHub issue

@mizosoft seems to have created a nice wrapper around the new HttpClient in Java 11. Since we are Java 11+, we could get rid of OkHttp, but at the same time, OkHttp is quite nice.

We could also make an interface, and use Methanol as the default. Then people could provide their own OkHttp client if they wanted.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tipsycommented, Aug 18, 2022

Nice, I’ll have a look in the weekend!

0reactions
tipsycommented, Aug 22, 2022

As was pointed out by @dzikoysk, a dependency is a dependency, and my quest to get rid of OkHttp might not make too much sense. Let’s reconsider for Javalin 6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recipes - OkHttp
We've written some recipes that demonstrate how to solve common problems with OkHttp. Read through them to learn about how everything works together....
Read more >
Upgrading to OkHttp 4 - Square Open Source
Java source compatibility is the ability to upgrade Java uses of OkHttp 3.x to 4.x without changing .java files. Kotlin source compatibility is...
Read more >
Overview - OkHttp - Square Open Source
OkHttp is an HTTP client that's efficient by default: HTTP/2 support allows all requests to the same host to share a ... Our...
Read more >
OkHttpClient - OkHttp - Square Open Source
You can customize a shared OkHttpClient instance with newBuilder. This builds a client that shares the same connection pool, thread pools, and configuration....
Read more >
3.x Change Log - OkHttp
This post explains why we're doing this and how to upgrade. The OkHttp 3.12.x branch will be our long-term branch for Android 2.3+...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found