aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 2f29375..4891d72 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -28,8 +28,12 @@
-type method() :: 'OPTIONS' | 'GET' | 'HEAD'
| 'POST' | 'PUT' | 'DELETE' | 'TRACE' | binary().
+-type uri() :: '*' | {absoluteURI, http | https, Host::binary(),
+ Port::integer() | undefined, Path::binary()}
+ | {scheme, Scheme::binary(), binary()}
+ | {abs_path, binary()} | binary().
--export_type([method/0]).
+-export_type([method/0, uri/0]).
-include("include/http.hrl").
-include_lib("eunit/include/eunit.hrl").