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

Implement cookies in cowboy_http_req

This commit is contained in:
Tom Burdick 2011-07-08 13:41:30 -05:00 committed by Loïc Hoguin
parent a29ccb070b
commit 5bd936db66
2 changed files with 41 additions and 4 deletions

View file

@ -34,7 +34,7 @@
| 'Set-Cookie2' | 'X-Forwarded-For' | 'Cookie' | 'Keep-Alive'
| 'Proxy-Connection' | binary().
-type http_headers() :: list({http_header(), binary()}).
%% -type http_cookies() :: term(). %% @todo
-type http_cookies() :: list({binary(), binary()}).
-type http_status() :: non_neg_integer() | binary().
-record(http_req, {
@ -58,7 +58,7 @@
raw_qs = undefined :: undefined | binary(),
bindings = undefined :: undefined | cowboy_dispatcher:bindings(),
headers = [] :: http_headers(),
%% cookies = undefined :: undefined | http_cookies() %% @todo
cookies = undefined :: undefined | http_cookies(),
%% Request body.
body_state = waiting :: waiting | done,