diff options
author | Loïc Hoguin <[email protected]> | 2012-01-23 09:21:33 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-01-23 09:21:33 +0100 |
commit | 9f4016748782876c4ac006a438df52a6bf19203c (patch) | |
tree | 1153931dcd05bf58a575edbb36b206f7828d8f3c /include | |
parent | 3667ec9451b968683b57e95be025f80ab0a6bdfb (diff) | |
download | cowboy-9f4016748782876c4ac006a438df52a6bf19203c.tar.gz cowboy-9f4016748782876c4ac006a438df52a6bf19203c.tar.bz2 cowboy-9f4016748782876c4ac006a438df52a6bf19203c.zip |
Rename the type http_method/0 to cowboy_http:method/0
Exported types are much better than include files.
Diffstat (limited to 'include')
-rw-r--r-- | include/http.hrl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/http.hrl b/include/http.hrl index a10b120..c693e53 100644 --- a/include/http.hrl +++ b/include/http.hrl @@ -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(), |