Created
March 17, 2020 09:29
-
-
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"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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