Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Created March 17, 2020 09:29
Show Gist options
  • Select an option

  • Save lordcodes/4d66f5f5fedd37ebae4e043b484271bc to your computer and use it in GitHub Desktop.

Select an option

Save lordcodes/4d66f5f5fedd37ebae4e043b484271bc to your computer and use it in GitHub Desktop.

Revisions

  1. lordcodes created this gist Mar 17, 2020.
    4 changes: 4 additions & 0 deletions OkHttpClientBuilder.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    fun okHttpClient(authorizationInterceptor: AuthorizationInterceptor) =
    OkHttpClient.Builder()
    .addInterceptor(authorizationInterceptor)
    .build()