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:
parent
3667ec9451
commit
9f40167487
4 changed files with 8 additions and 5 deletions
|
@ -108,7 +108,7 @@ wait_request(State=#state{socket=Socket, transport=Transport,
|
|||
{error, _Reason} -> terminate(State)
|
||||
end.
|
||||
|
||||
-spec request({http_request, http_method(), http_uri(),
|
||||
-spec request({http_request, cowboy_http:method(), http_uri(),
|
||||
http_version()}, #state{}) -> ok | none().
|
||||
request({http_request, _Method, _URI, Version}, State)
|
||||
when Version =/= {1, 0}, Version =/= {1, 1} ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue