aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTom Burdick <[email protected]>2011-07-08 13:41:30 -0500
committerLoïc Hoguin <[email protected]>2011-07-26 13:53:31 +0200
commit5bd936db6606a27dfd91a0e2675889b58c212376 (patch)
tree7f7c76c82af50f6bb040293c569a39b5d88e8ffe /include
parenta29ccb070b0587a59f4266d0524b25a4efe98ccd (diff)
downloadcowboy-5bd936db6606a27dfd91a0e2675889b58c212376.tar.gz
cowboy-5bd936db6606a27dfd91a0e2675889b58c212376.tar.bz2
cowboy-5bd936db6606a27dfd91a0e2675889b58c212376.zip
Implement cookies in cowboy_http_req
Diffstat (limited to 'include')
-rw-r--r--include/http.hrl4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/http.hrl b/include/http.hrl
index ff41543..7e0380d 100644
--- a/include/http.hrl
+++ b/include/http.hrl
@@ -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,