Skip to content

Instantly share code, notes, and snippets.

@Unlimity
Created April 9, 2019 07:31
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 Unlimity/205190a66f48b54fb8febd264c8c150a to your computer and use it in GitHub Desktop.
Save Unlimity/205190a66f48b54fb8febd264c8c150a to your computer and use it in GitHub Desktop.
val client = NinjatoOkHttpClient(okHttpClient) {
interceptors += MyRequestInterceptor()
interceptors += MyResponseInterceptor()
interceptors {
request { r ->
Log.d(r)
r
}
response { r ->
Log.d(r)
r
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment