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

Rename the type http_method/0 to cowboy_http:method/0

Exported types are much better than include files.
This commit is contained in:
Loïc Hoguin 2012-01-23 09:21:33 +01:00
parent 3667ec9451
commit 9f40167487
4 changed files with 8 additions and 5 deletions

View file

@ -56,7 +56,7 @@
%% Request API.
%% @doc Return the HTTP method of the request.
-spec method(#http_req{}) -> {http_method(), #http_req{}}.
-spec method(#http_req{}) -> {cowboy_http:method(), #http_req{}}.
method(Req) ->
{Req#http_req.method, Req}.