diff options
author | Loïc Hoguin <[email protected]> | 2011-04-18 13:52:32 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-04-18 13:52:32 +0200 |
commit | 63a92df14e25599c6903a8178b5e89acc4482645 (patch) | |
tree | e52aa7c39e54dd0729b3b435100e1294045106e1 /include/http.hrl | |
parent | 731d839323e74b95a326001e4e424a1f2b18902e (diff) | |
download | cowboy-63a92df14e25599c6903a8178b5e89acc4482645.tar.gz cowboy-63a92df14e25599c6903a8178b5e89acc4482645.tar.bz2 cowboy-63a92df14e25599c6903a8178b5e89acc4482645.zip |
Replace port_number() by ip_port() from kernel/include/inet.hrl.
Diffstat (limited to 'include/http.hrl')
-rw-r--r-- | include/http.hrl | 4 |
1 files changed, 3 insertions, 1 deletions
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(), |