OkHttp

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 2023-04-25.
  • Introduction to HTTP Multipart
    4 projects | news.ycombinator.com | 25 Apr 2023
    You can technically add a Content-Length header for each part. It's not forbidden by the RFC, but nor is it common. It caused [problems](https://github.com/square/okhttp/issues/2138) for OkHttp, and they eventually removed it. Might be fine for internal-only use, though.

    Boundaries are a lot like UUIDs, and rely on the same logic. When generating random data, once you have enough bits, the odds are against that sequence of bits ever having been generated before in the universe.

  • Introducing Bld: A New Pure Java Build System
    14 projects | /r/java | 12 Apr 2023
    Lets be specific. This is the gradle build file for Squares okhttp client library. How exactly would your bld tool "predict" or "help" with all the parameters needed? There is no need to be defensive. Replace those large build files with your own, show where your approach is better and then understanding will lead to better solutions.
  • What stack to use for app with functionality like event calendar?
    2 projects | /r/androiddev | 6 Mar 2023
    Retrofit in combination with OkHttp for fetching data from server (which hopefully already exists)
  • Generate Kotlin client for a complex web API
    7 projects | dev.to | 9 Feb 2023
  • Modern Android Development in 2023
    7 projects | dev.to | 23 Jan 2023
    OkHttp
  • Is it acceptable to use mock servers, like Postman, for testing in Android?
    3 projects | /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 | /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 | /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 | /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…”
  • A note from our sponsor - Appwrite
    appwrite.io | 28 Nov 2023
    Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools. Learn more →

Stats

Basic OkHttp repo stats
41
44,725
0.0
8 days ago

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

The primary programming language of OkHttp is Kotlin.

Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
www.influxdata.com