Question: How to send specific cookies when using in wasm? #1453
-
In general I want to know how I can use cookies when using this crate wasm compiled. |
Beta Was this translation helpful? Give feedback.
Answered by
seanmonstar
Jan 27, 2022
Replies: 1 comment
-
At the basic level, cookies are just another header you can send on a request. So, if you know exactly what you want to send, you can use If you want the more involved cookie session management feature of reqwest, it's not been ported to support WASM yet. Maybe something like #1449 will make that happen. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
seanmonstar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the basic level, cookies are just another header you can send on a request. So, if you know exactly what you want to send, you can use
client.get(url).header("cookie", "foo=bar")
.If you want the more involved cookie session management feature of reqwest, it's not been ported to support WASM yet. Maybe something like #1449 will make that happen.