Spring Cloud auto-configuration of Retrofit and OkHttp (with Netflix Ribbon).
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.mvn
spring-cloud-square-dependencies
spring-cloud-square-okhttp
spring-cloud-square-retrofit fix compile errors Mar 14, 2018
.gitignore
.settings.xml
LICENSE.txt
README.md
mvnw
mvnw.cmd
pom.xml

README.md

CircleCI

OkHttpClient integration with Ribbon

This module supplies integration with Square's OkHttpClient and Netflix Ribbon via Spring Cloud Netflix.

An application interceptor is added to the OkHttpClient created via autoconfiguration which resolves the scheme, host and port from ribbon and rewrites the url.

By supporting OkHttpClient, it enables Square's Retrofit to use ribbon as well.

See OkHttpRibbonInterceptorTests for samples.