mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add cowboy_http_req:set_resp_cookie/4
Pretty much just an alias for a combination of set_resp_header and cookie.
This commit is contained in:
parent
a12a910341
commit
ce92ab1e63
3 changed files with 13 additions and 3 deletions
|
@ -505,7 +505,8 @@ set_resp_header(Config) ->
|
|||
ok = gen_tcp:send(Socket, "GET /set_resp/header HTTP/1.1\r\n"
|
||||
"Host: localhost\r\nConnection: close\r\n\r\n"),
|
||||
{ok, Data} = gen_tcp:recv(Socket, 0, 6000),
|
||||
{_Start, _Length} = binary:match(Data, <<"Vary: Accept">>).
|
||||
{_, _} = binary:match(Data, <<"Vary: Accept">>),
|
||||
{_, _} = binary:match(Data, <<"Set-Cookie: ">>).
|
||||
|
||||
set_resp_overwrite(Config) ->
|
||||
{port, Port} = lists:keyfind(port, 1, Config),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue