Skip to content

Instantly share code, notes, and snippets.

@Ikhiloya
Created October 28, 2020 07:07
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 Ikhiloya/b2b460c12d1328e88d886708e9380d65 to your computer and use it in GitHub Desktop.
Save Ikhiloya/b2b460c12d1328e88d886708e9380d65 to your computer and use it in GitHub Desktop.
A simple web service call with a custom header to ensure that the request is retrieved from the cached
@GET(Constant.PAYMENT_TYPES)
@Headers("Cacheable: true")
fun getPaymentTypesWithHeaders(): Call<MutableList<PaymentType>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment