0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +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

@ -13,8 +13,6 @@
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-type http_method() :: 'OPTIONS' | 'GET' | 'HEAD'
| 'POST' | 'PUT' | 'DELETE' | 'TRACE' | binary().
-type http_uri() :: '*' | {absoluteURI, http | https, Host::binary(),
Port::integer() | undefined, Path::binary()}
| {scheme, Scheme::binary(), binary()}
@ -47,7 +45,7 @@
%% Request.
pid = undefined :: pid(),
method = 'GET' :: http_method(),
method = 'GET' :: cowboy_http:method(),
version = {1, 1} :: http_version(),
peer = undefined :: undefined | {inet:ip_address(), inet:ip_port()},
host = undefined :: undefined | cowboy_dispatcher:tokens(),