aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-01-23 09:36:59 +0100
committerLoïc Hoguin <[email protected]>2012-01-23 09:36:59 +0100
commita297d5e42b76e4d1281a1d33b54c279d8b585772 (patch)
tree23873066f4fbe5f30c9aba98319c9797aafb5007 /src/cowboy_http.erl
parent8622dff906a1bdddf588e1fe006307488a824d3a (diff)
downloadcowboy-a297d5e42b76e4d1281a1d33b54c279d8b585772.tar.gz
cowboy-a297d5e42b76e4d1281a1d33b54c279d8b585772.tar.bz2
cowboy-a297d5e42b76e4d1281a1d33b54c279d8b585772.zip
Rename the type http_header/0 to cowboy_http:header/0
At the same time rename http_headers/0 to cowboy_http:headers/0.
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 41c1a71..3324cd4 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -33,8 +33,22 @@
| {scheme, Scheme::binary(), binary()}
| {abs_path, binary()} | binary().
-type version() :: {Major::non_neg_integer(), Minor::non_neg_integer()}.
-
--export_type([method/0, uri/0, version/0]).
+-type header() :: 'Cache-Control' | 'Connection' | 'Date' | 'Pragma'
+ | 'Transfer-Encoding' | 'Upgrade' | 'Via' | 'Accept' | 'Accept-Charset'
+ | 'Accept-Encoding' | 'Accept-Language' | 'Authorization' | 'From' | 'Host'
+ | 'If-Modified-Since' | 'If-Match' | 'If-None-Match' | 'If-Range'
+ | 'If-Unmodified-Since' | 'Max-Forwards' | 'Proxy-Authorization' | 'Range'
+ | 'Referer' | 'User-Agent' | 'Age' | 'Location' | 'Proxy-Authenticate'
+ | 'Public' | 'Retry-After' | 'Server' | 'Vary' | 'Warning'
+ | 'Www-Authenticate' | 'Allow' | 'Content-Base' | 'Content-Encoding'
+ | 'Content-Language' | 'Content-Length' | 'Content-Location'
+ | 'Content-Md5' | 'Content-Range' | 'Content-Type' | 'Etag'
+ | 'Expires' | 'Last-Modified' | 'Accept-Ranges' | 'Set-Cookie'
+ | 'Set-Cookie2' | 'X-Forwarded-For' | 'Cookie' | 'Keep-Alive'
+ | 'Proxy-Connection' | binary().
+-type headers() :: [{header(), iodata()}].
+
+-export_type([method/0, uri/0, version/0, header/0, headers/0]).
-include("include/http.hrl").
-include_lib("eunit/include/eunit.hrl").