diff options
author | Loïc Hoguin <[email protected]> | 2011-12-19 09:44:24 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-12-19 09:44:47 +0100 |
commit | f390dbd60671fd49bd99137f539794b1fbe1c718 (patch) | |
tree | dc38e8f6d9697565cff720e43c4952b6f78d6cd0 /include | |
parent | f9bd5d1061813be1405977af57390ca7af40e39e (diff) | |
download | cowboy-f390dbd60671fd49bd99137f539794b1fbe1c718.tar.gz cowboy-f390dbd60671fd49bd99137f539794b1fbe1c718.tar.bz2 cowboy-f390dbd60671fd49bd99137f539794b1fbe1c718.zip |
Add meta/2 and meta/3 to cowboy_http_req to save useful protocol information
* cowboy_http_protocol now defines 'websocket_version' as metadata.
* cowboy_http_rest now defines 'media_type', 'language', 'charset' as metadata.
Diffstat (limited to 'include')
-rw-r--r-- | include/http.hrl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/http.hrl b/include/http.hrl index e5311c4..84b9489 100644 --- a/include/http.hrl +++ b/include/http.hrl @@ -60,6 +60,7 @@ headers = [] :: http_headers(), p_headers = [] :: [any()], %% @todo Improve those specs. cookies = undefined :: undefined | http_cookies(), + meta = [] :: [{atom(), any()}], %% Request body. body_state = waiting :: waiting | done, |