diff options
author | Loïc Hoguin <[email protected]> | 2012-01-23 09:21:33 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-01-23 09:21:33 +0100 |
commit | 9f4016748782876c4ac006a438df52a6bf19203c (patch) | |
tree | 1153931dcd05bf58a575edbb36b206f7828d8f3c /src/cowboy_http.erl | |
parent | 3667ec9451b968683b57e95be025f80ab0a6bdfb (diff) | |
download | cowboy-9f4016748782876c4ac006a438df52a6bf19203c.tar.gz cowboy-9f4016748782876c4ac006a438df52a6bf19203c.tar.bz2 cowboy-9f4016748782876c4ac006a438df52a6bf19203c.zip |
Rename the type http_method/0 to cowboy_http:method/0
Exported types are much better than include files.
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r-- | src/cowboy_http.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index 7c1a2d3..2f29375 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -26,6 +26,11 @@ -export([connection_to_atom/1, urldecode/1, urldecode/2, urlencode/1, urlencode/2]). +-type method() :: 'OPTIONS' | 'GET' | 'HEAD' + | 'POST' | 'PUT' | 'DELETE' | 'TRACE' | binary(). + +-export_type([method/0]). + -include("include/http.hrl"). -include_lib("eunit/include/eunit.hrl"). |