0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Rename the type http_uri/0 to cowboy_http:uri/0

This commit is contained in:
Loïc Hoguin 2012-01-23 09:23:58 +01:00
parent 9f40167487
commit 314483a0b6
3 changed files with 6 additions and 6 deletions

View file

@ -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").

View file

@ -108,7 +108,7 @@ wait_request(State=#state{socket=Socket, transport=Transport,
{error, _Reason} -> terminate(State)
end.
-spec request({http_request, cowboy_http:method(), http_uri(),
-spec request({http_request, cowboy_http:method(), cowboy_http:uri(),
http_version()}, #state{}) -> ok | none().
request({http_request, _Method, _URI, Version}, State)
when Version =/= {1, 0}, Version =/= {1, 1} ->