Need advice about which tool to choose?Ask the StackShare community!

OkHttp

66
85
+ 1
0
Retrofit

242
177
+ 1
0
Add tool

OkHttp vs Retrofit: What are the differences?

OkHttp: An open source HTTP client. HTTP is the way modern applications network. It’s how we exchange data & media. Doing HTTP efficiently makes your stuff load faster and saves bandwidth; Retrofit: A type-safe HTTP client for Android and Java. Retrofit turns your HTTP API into a Java interface.

OkHttp and Retrofit can be primarily classified as "API" tools.

Some of the features offered by OkHttp are:

  • HTTP/2 support allows all requests to the same host to share a socket.
  • Connection pooling reduces request latency (if HTTP/2 isn’t available).
  • Transparent GZIP shrinks download sizes.

On the other hand, Retrofit provides the following key features:

  • URL parameter replacement and query parameter support
  • Object conversion to request body (e.g., JSON, protocol buffers)
  • Multipart request body and file upload

Retrofit is an open source tool with 33.3K GitHub stars and 6.17K GitHub forks. Here's a link to Retrofit's open source repository on GitHub.

Square, Write.as, and Robinhood are some of the popular companies that use Retrofit, whereas OkHttp is used by FarmLogs, Gridle, and Tokopedia. Retrofit has a broader approval, being mentioned in 33 company stacks & 19 developers stacks; compared to OkHttp, which is listed in 9 company stacks and 7 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
- No public GitHub repository available -

What is OkHttp?

HTTP is the way modern applications network. It’s how we exchange data & media. Doing HTTP efficiently makes your stuff load faster and saves bandwidth.

What is Retrofit?

Retrofit turns your HTTP API into a Java interface

Need advice about which tool to choose?Ask the StackShare community!

Jobs that mention OkHttp and Retrofit as a desired skillset
CBRE
United States of America California Sunnyvale
CBRE
United States of America Texas Houston
CBRE
United States of America Iowa Des Moines
CBRE
Malaysia Wilayah Persekutuan Kuala Lumpur Kuala Lumpur
What companies use OkHttp?
What companies use Retrofit?
See which teams inside your own company are using OkHttp or Retrofit.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with OkHttp?
What tools integrate with Retrofit?
    No integrations found
    What are some alternatives to OkHttp and Retrofit?
    Netty
    Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server.
    Postman
    It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
    Amazon API Gateway
    Amazon API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, monitoring, and API version management.
    Insomnia REST Client
    Insomnia is a powerful REST API Client with cookie management, environment variables, code generation, and authentication for Mac, Window, and Linux.
    RestSharp
    It is probably the most popular HTTP client library for .NET. Featuring automatic serialization and deserialization, request and response type detection, variety of authentications and other useful features
    See all alternatives