mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 13:10:24 +00:00
Use the inet:ip_address() type instead of the user-defined one.
This commit is contained in:
parent
734f57aa8a
commit
9ad32386c0
5 changed files with 4 additions and 8 deletions
|
@ -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(),
|
||||
|
|
|
@ -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()}).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue