aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/http.hrl2
-rw-r--r--include/types.hrl4
2 files changed, 1 insertions, 5 deletions
diff --git a/include/http.hrl b/include/http.hrl
index a3b2e9b..ad95c0f 100644
--- a/include/http.hrl
+++ b/include/http.hrl
@@ -21,7 +21,7 @@
%% Request.
method = 'GET' :: http_method(),
version = {1, 1} :: http_version(),
- peer = undefined :: undefined | {Address::ip_address(), Port::port_number()},
+ peer = undefined :: undefined | {Address::inet:ip_address(), Port::port_number()},
host = undefined :: undefined | path_tokens(),
raw_host = undefined :: undefined | string(),
path = undefined :: undefined | '*' | path_tokens(),
diff --git a/include/types.hrl b/include/types.hrl
index bdd4c5f..5938f0e 100644
--- a/include/types.hrl
+++ b/include/types.hrl
@@ -18,10 +18,6 @@
-type posix() :: atom().
-opaque socket() :: term().
-opaque sslsocket() :: term().
--type ipv4_address() :: {0..255, 0..255, 0..255, 0..255}.
--type ipv6_address() :: {0..65535, 0..65535, 0..65535, 0..65535,
- 0..65535, 0..65535, 0..65535, 0..65535}.
--type ip_address() :: ipv4_address() | ipv6_address().
-type port_number() :: 0..65535.
-type bindings() :: list({Key::atom(), Value::string()}).