Square’s meticulous HTTP client for the JVM, Android, and GraalVM. (by square)

OkHttp Alternatives

Similar projects and alternatives to OkHttp

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better OkHttp alternative or higher similarity.

OkHttp reviews and mentions

Posts with mentions or reviews of OkHttp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-06.
  • Is it acceptable to use mock servers, like Postman, for testing in Android?
    3 projects | reddit.com/r/androiddev | 6 Sep 2022
    Being more familiar with Android development only, I mainly use https://github.com/square/okhttp/tree/master/mockwebserver
  • Best libraries for Android Developers
    19 projects | dev.to | 15 Jul 2022
    Retrofit is the best library that lets you connect to HTTP-based API services from your Android applications. It leverages the OkHttp library’s core functionality, adding a bunch of features to it while eliminating the boilerplate code.
  • How to use Cronet Engine for API calls? Any simple repo for it to understand?
    2 projects | reddit.com/r/androiddev | 30 Jun 2022
    Use Retrofit or anything else that builds on OkHttp. If you do end up needing some features that Cronet supports but OkHttp doesn't (such as HTTP/3), just write an interceptor or use google/cronet-transport-for-okhttp.
  • IPv6 Support on Android
    2 projects | reddit.com/r/RedditEng | 31 May 2022
    Even as of 2022, there are networks out there that have broken/misconfigured IPv6, and there most likely always will be. Some wireless carriers and ISPs support it, but in some cases, people have old or improperly-configured routers and devices. Patchy IPv6 support is less of a problem on iOS and the web these days since those clients have support for dynamically falling back on IPv4 when IPv6 fails. After more research, we realized that Android didn’t have this “dual-stack” IP support, and neither did our preferred networking library, OkHttp. This explained why the content-loading issues only surfaced on Android, and why it took some additional digging to uncover the root cause.
    2 projects | reddit.com/r/RedditEng | 31 May 2022
    Working with the reddit infrastructure team, we did more testing and built high confidence that this last IPv6 theory was indeed the cause of users’ content-loading problems. We assessed our usage of OkHttp and checked if there were any upcoming plans to improve support. OkHttp did have an open ask for “Happy Eyeballs” #506, but no known plans to implement it. Out of due diligence, we also assessed other network libraries– but knew that moving off OkHttp would be a radical change, indeed. We read the RFC 8305, “Happy Eyeballs algorithm for dual-stack IPv4/IPv6”, and thought “wow, we don’t want to implement this ourselves.” And as we were studying that open OkHttp issue and thinking “If only they would…”
  • App Flow of an Android App?
    2 projects | reddit.com/r/androiddev | 23 May 2022
    Your app would request data from the backend inside it's domain layer. As the other commenter mentioned, Retrofit is a commonly used library for interfacing with REST APIs, which is built on top of OkHttp (a more generic HTTP client).
  • Watery : A water delivery solution android app
    3 projects | dev.to | 1 May 2022
  • Reddit back to IPv6!
    2 projects | reddit.com/r/ipv6 | 25 Mar 2022
    Word is that the official Reddit mobile app is using the OkHttp Java library, which seems at first to support every conceivable feature, but apparently didn't support Happy Eyeballs at that time.
  • Ask HN: Codebases with great, easy to read code?
    35 projects | news.ycombinator.com | 21 Mar 2022
    I’ve learned a TON from the [okhttp3](https://square.github.io/okhttp/) codebase, highly recommend studying it.
  • Request Bodies in Get Requests
    2 projects | news.ycombinator.com | 31 Jan 2022
    I’ve to build a cli HTTP client in Java and went with OkHttp [1], as it was widely used on Android. I’ve to add support for GET requests with a body but I wasn’t able to do it with OkHttp. The library was rather opinionated and you couldn’t add a body to a request body back then [2]. I was rather surprised, because I thought HTTP specs allowed it, while discouraging; so an HTTP library should allow this kind of usage. I went back to Apache HTTPComponents, while less fancy than OkHttp but also less opinionated, and was able to complete my client. Things may have changed, it was a few years ago.

    [1] https://github.com/square/okhttp

    [2] https://github.com/square/okhttp/issues/5803

    [3] https://hc.apache.org/

  • A note from our sponsor - SonarLint
    www.sonarlint.org | 30 Sep 2022
    Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today. Learn more →


Basic OkHttp repo stats
5 days ago

square/okhttp is an open source project licensed under Apache License 2.0 which is an OSI approved license.

Download talent.io’s Tech Salary Report
Median salaries, most in-demand technologies, state of the remote work... all you need to know your worth on the market by tech recruitment platform talent.io
Find remote jobs at our new job board 99remotejobs.com. There are 8 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.