Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Created March 17, 2020 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordcodes/4d66f5f5fedd37ebae4e043b484271bc to your computer and use it in GitHub Desktop.
Save lordcodes/4d66f5f5fedd37ebae4e043b484271bc to your computer and use it in GitHub Desktop.
Code for the article: "Authorization and retrying of web requests for OkHttp and Retrofit"
fun okHttpClient(authorizationInterceptor: AuthorizationInterceptor) =
OkHttpClient.Builder()
.addInterceptor(authorizationInterceptor)
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment