Stack Explorer

OkHttp

http-client

Modern and efficient HTTP client for Java and Android

5M/week → Stable

Features

httpclientandroidefficient

Pros and Cons

Ventajas

  • + Automatic connection pooling
  • + HTTP/2 support
  • + Flexible interceptors
  • + Automatic retry
  • + Used by default in Android

Desventajas

  • - Configuration can be verbose
  • - Async API different from sync

Use Cases

  • Android applications
  • Java REST clients
  • Inter-service communication
  • APIs with authentication
  • File downloading

Tecnologías Relacionadas

Related