0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix calling convention for set_resp_cookie/3

If not providing optional values, they are set to `#{}` and
are the last parameter according to the source code. Reflect
this in the documentation.
This commit is contained in:
Jesper Louis Andersen 2019-04-02 15:37:57 +02:00 committed by Loïc Hoguin
parent 9edfef34b2
commit b86e2839bc
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -9,7 +9,7 @@ cowboy_req:set_resp_cookie - Set a cookie
[source,erlang]
----
set_resp_cookie(Name, Value, Req :: cowboy_req:req())
-> set_resp_cookie(Name, Value, [], Req)
-> set_resp_cookie(Name, Value, Req, #{})
set_resp_cookie(Name, Value, Req :: cowboy_req:req(), Opts)
-> Req