Skip to content

Instantly share code, notes, and snippets.

@liang799
Created December 21, 2022 06:49
Show Gist options
  • Save liang799/1d402ec8ebcb615d56d051e23434e2a6 to your computer and use it in GitHub Desktop.
Save liang799/1d402ec8ebcb615d56d051e23434e2a6 to your computer and use it in GitHub Desktop.
Retrofit headers
val res = repository.doApiCall()
val specificHeader = res.headers()["Header name here"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment