[Coil3] HTTP headers : Confused by the documentation #2558
Answered
by
colinrtwhite
RobbWatershed
asked this question in
Q&A
-
I'd like to set cookies through HTTP headers for individual requests. That page explains how, but I realize Coil3 does not provide I dug up a vague reference to the => Could someone provide a sample code to illustrate that use case? Thanks in advance~ |
Beta Was this translation helpful? Give feedback.
Answered by
colinrtwhite
Oct 16, 2024
Replies: 1 comment 1 reply
-
Sorry, that recipes page needs to be updated. Here's an example of how to set headers for a request in Coil 3.0: val headers = NetworkHeaders.Builder()
.set(key, value)
.build()
val request = ImageRequest.Builder(context)
.data(url)
.httpHeaders(headers)
.build() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RobbWatershed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, that recipes page needs to be updated. Here's an example of how to set headers for a request in Coil 3.0: