Skip to content

Instantly share code, notes, and snippets.

@dinorahtovar
Last active July 19, 2018 17:07
Show Gist options
  • Save dinorahtovar/2e38bf713ae57fe0cfcf53287d6ec880 to your computer and use it in GitHub Desktop.
Save dinorahtovar/2e38bf713ae57fe0cfcf53287d6ec880 to your computer and use it in GitHub Desktop.
Adding Headers Request Retrofit
@Headers("Content-Type:application/json; charset=UTF-8")
@GET("yourwebsite/{someParam}/login")
fun logout(@Header(UUID.randomUUID().toString()) authToken: String?, @Path("someParam") someParam: String?): Observable<LoginResponseViewModel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment