From 63a92df14e25599c6903a8178b5e89acc4482645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 18 Apr 2011 13:52:32 +0200 Subject: Replace port_number() by ip_port() from kernel/include/inet.hrl. --- include/http.hrl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/http.hrl') diff --git a/include/http.hrl b/include/http.hrl index 391e79a..79bfc7b 100644 --- a/include/http.hrl +++ b/include/http.hrl @@ -12,6 +12,8 @@ %% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +-include_lib("kernel/include/inet.hrl"). + -type http_method() :: 'OPTIONS' | 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'TRACE' | string(). -type http_uri() :: '*' | {absoluteURI, http | https, Host::string(), @@ -45,7 +47,7 @@ %% Request. method = 'GET' :: http_method(), version = {1, 1} :: http_version(), - peer = undefined :: undefined | {Address::inet:ip_address(), Port::port_number()}, + peer = undefined :: undefined | {Address::ip_address(), Port::ip_port()}, host = undefined :: undefined | cowboy_dispatcher:path_tokens(), raw_host = undefined :: undefined | string(), path = undefined :: undefined | '*' | cowboy_dispatcher:path_tokens(), -- cgit v1.2.3