Created
December 18, 2020 07:25
-
-
Save andretietz/f64f0b8f5e33cb81a40d7a2d6c402a07 to your computer and use it in GitHub Desktop.
This file contains 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
@Authenticated | |
@GET("/some/path") | |
fun someCall(): Call<MyResponseObject> |
This file contains 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
return chain.proceed(chain.request()) // returns Response |
This file contains 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
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