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:
parent
9edfef34b2
commit
b86e2839bc
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ cowboy_req:set_resp_cookie - Set a cookie
|
||||||
[source,erlang]
|
[source,erlang]
|
||||||
----
|
----
|
||||||
set_resp_cookie(Name, Value, Req :: cowboy_req:req())
|
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)
|
set_resp_cookie(Name, Value, Req :: cowboy_req:req(), Opts)
|
||||||
-> Req
|
-> Req
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue