From b5d4cb91f80c833795a2d87050c3674bb7aecdc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 3 Oct 2017 13:39:41 +0200 Subject: Update Hugo, docs --- .../cowboy/2.0/manual/cowboy_req.port/index.html | 170 ++++++++++----------- 1 file changed, 85 insertions(+), 85 deletions(-) (limited to 'docs/en/cowboy/2.0/manual/cowboy_req.port') diff --git a/docs/en/cowboy/2.0/manual/cowboy_req.port/index.html b/docs/en/cowboy/2.0/manual/cowboy_req.port/index.html index 93f106b0..5864d84a 100644 --- a/docs/en/cowboy/2.0/manual/cowboy_req.port/index.html +++ b/docs/en/cowboy/2.0/manual/cowboy_req.port/index.html @@ -7,7 +7,7 @@ - + Nine Nines: cowboy_req:port(3) @@ -67,90 +67,90 @@

cowboy_req:port(3)

-
-

Name

-
-

cowboy_req:port - URI port number

-
-
-
-

Description

-
-
-
-
port(Req :: cowboy_req:req()) -> Port :: inet:port_number()
-

Return the port number of the effective request URI.

-

Note that the port number returned by this function is obtained -by parsing the host header. It may be different from the port -the peer used to connect to Cowboy.

-

The port number can also be obtained using pattern matching:

-
-
-
#{port := Port} = Req.
-
-
-
-

Arguments

-
-
-
-Req -
-
-

-The Req object. -

-
-
-
-
-
-

Return value

-
-

The port number is returned as an integer.

-
-
-
-

Changelog

-
-
    -
  • -

    -2.0: Only the port number is returned, it is no longer wrapped in a tuple. -

    -
  • -
  • -

    -1.0: Function introduced. -

    -
  • -
-
-
-
-

Examples

-
-
-
Get the effective request URI’s port number
-
-
Port = cowboy_req:port(Req).
-
-
-
-

See also

- -
+
+

Name

+
+

cowboy_req:port - URI port number

+
+
+
+

Description

+
+
+
+
port(Req :: cowboy_req:req()) -> Port :: inet:port_number()
+

Return the port number of the effective request URI.

+

Note that the port number returned by this function is obtained +by parsing the host header. It may be different from the port +the peer used to connect to Cowboy.

+

The port number can also be obtained using pattern matching:

+
+
+
#{port := Port} = Req.
+
+
+
+

Arguments

+
+
+
+Req +
+
+

+The Req object. +

+
+
+
+
+
+

Return value

+
+

The port number is returned as an integer.

+
+
+
+

Changelog

+
+
    +
  • +

    +2.0: Only the port number is returned, it is no longer wrapped in a tuple. +

    +
  • +
  • +

    +1.0: Function introduced. +

    +
  • +
+
+
+
+

Examples

+
+
+
Get the effective request URI’s port number
+
+
Port = cowboy_req:port(Req).
+
+
+
+

See also

+ +
-- cgit v1.2.3