From 9f4016748782876c4ac006a438df52a6bf19203c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 23 Jan 2012 09:21:33 +0100 Subject: Rename the type http_method/0 to cowboy_http:method/0 Exported types are much better than include files. --- src/cowboy_http.erl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cowboy_http.erl') diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index 7c1a2d3..2f29375 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -26,6 +26,11 @@ -export([connection_to_atom/1, urldecode/1, urldecode/2, urlencode/1, urlencode/2]). +-type method() :: 'OPTIONS' | 'GET' | 'HEAD' + | 'POST' | 'PUT' | 'DELETE' | 'TRACE' | binary(). + +-export_type([method/0]). + -include("include/http.hrl"). -include_lib("eunit/include/eunit.hrl"). -- cgit v1.2.3