wojtekmach / req

Req is a batteries-included HTTP client for Elixir.
https://hexdocs.pm/req
Apache License 2.0
1.09k stars 117 forks source link

How to set cookies #418

Closed bhougland18 closed 1 month ago

bhougland18 commented 1 month ago

Hello,

Is there an example of setting cookies for Req? I am using a Playwright Browser context and I would like to transfer the cookies to Req for api testing instead of using Playwrights built in request method.

wojtekmach commented 1 month ago

At the moment you need to do it manually via cookie header.