aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-03-12 21:57:07 +0100
committerLoïc Hoguin <[email protected]>2012-03-12 21:57:07 +0100
commit3885912d9b61639437a738707299d2b14d40ed67 (patch)
treefff0f88d27be3d53b2132bb42cea6292117e176c /include
parent5d46ad0e58623591ca97c42f76a4e0151d724047 (diff)
downloadcowboy-3885912d9b61639437a738707299d2b14d40ed67.tar.gz
cowboy-3885912d9b61639437a738707299d2b14d40ed67.tar.bz2
cowboy-3885912d9b61639437a738707299d2b14d40ed67.zip
Rename inet:ip_port() to inet:port_number()
Thanks go to @superbobry for pointing it out.
Diffstat (limited to 'include')
-rw-r--r--include/http.hrl5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/http.hrl b/include/http.hrl
index c66f2b0..9ba3787 100644
--- a/include/http.hrl
+++ b/include/http.hrl
@@ -23,11 +23,12 @@
pid = undefined :: pid(),
method = 'GET' :: cowboy_http:method(),
version = {1, 1} :: cowboy_http:version(),
- peer = undefined :: undefined | {inet:ip_address(), inet:ip_port()},
+ peer = undefined :: undefined |
+ {inet:ip_address(), inet:port_number()},
host = undefined :: undefined | cowboy_dispatcher:tokens(),
host_info = undefined :: undefined | cowboy_dispatcher:tokens(),
raw_host = undefined :: undefined | binary(),
- port = undefined :: undefined | inet:ip_port(),
+ port = undefined :: undefined | inet:port_number(),
path = undefined :: undefined | '*' | cowboy_dispatcher:tokens(),
path_info = undefined :: undefined | cowboy_dispatcher:tokens(),
raw_path = undefined :: undefined | binary(),