[99s-extend] Cowboy: retrieving "just set" cookies

Enrique Paz quiquepaz at gmail.com
Sun May 12 13:42:38 CEST 2013


Hi,

I have a piece of code that receives a cowboy_req:http_req() object and
depending on some Context sets 1 or more cookies
using cowboy_req:set_resp_cookie/4.

add_cookies(Req, Context) -> ReqWithCookiesSet

I want to write a unit test for it, checking that the right cookies are set
for the right Context.  How can I do that? I miss something like
cowboy_req:get_resp_cookie/2 or so.

Thx in advance for your help.

-- 
Enrique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20130512/dd43116e/attachment.html>


More information about the Extend mailing list