Skip to content

Instantly share code, notes, and snippets.

@andretietz
Created December 18, 2020 07:25
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 andretietz/f64f0b8f5e33cb81a40d7a2d6c402a07 to your computer and use it in GitHub Desktop.
Save andretietz/f64f0b8f5e33cb81a40d7a2d6c402a07 to your computer and use it in GitHub Desktop.
@Authenticated
@GET("/some/path")
fun someCall(): Call<MyResponseObject>
return chain.proceed(chain.request()) // returns Response
val request = chain.request().newBuilder()
// modify the request as you need it
...
.build()
chain.proceed(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment