diff options
author | Loïc Hoguin <[email protected]> | 2017-10-25 20:17:21 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-10-25 21:03:26 +0100 |
commit | ef58e15547ee171a716eaa768374e2e7e2f7d397 (patch) | |
tree | 0871f7f142014592f581f7c1a9705eb95d65dc2a /doc/src/manual/cowboy_req.asciidoc | |
parent | 4090adaecc6ba30eeeabf50aee57c22945fa27eb (diff) | |
download | cowboy-ef58e15547ee171a716eaa768374e2e7e2f7d397.tar.gz cowboy-ef58e15547ee171a716eaa768374e2e7e2f7d397.tar.bz2 cowboy-ef58e15547ee171a716eaa768374e2e7e2f7d397.zip |
Introduce cowboy_req:sock/1 and cowboy_req:cert/1
To obtain the local socket ip/port and the client TLS
certificate, respectively.
Diffstat (limited to 'doc/src/manual/cowboy_req.asciidoc')
-rw-r--r-- | doc/src/manual/cowboy_req.asciidoc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/src/manual/cowboy_req.asciidoc b/doc/src/manual/cowboy_req.asciidoc index 7f026c3..b038764 100644 --- a/doc/src/manual/cowboy_req.asciidoc +++ b/doc/src/manual/cowboy_req.asciidoc @@ -29,6 +29,12 @@ and to read the body once. == Exports +Connection: + +* link:man:cowboy_req:peer(3)[cowboy_req:peer(3)] - Peer address and port +* link:man:cowboy_req:sock(3)[cowboy_req:sock(3)] - Socket address and port +* link:man:cowboy_req:cert(3)[cowboy_req:cert(3)] - Client TLS certificate + Raw request: * link:man:cowboy_req:method(3)[cowboy_req:method(3)] - HTTP method @@ -41,7 +47,6 @@ Raw request: * link:man:cowboy_req:uri(3)[cowboy_req:uri(3)] - Reconstructed URI * link:man:cowboy_req:header(3)[cowboy_req:header(3)] - HTTP header * link:man:cowboy_req:headers(3)[cowboy_req:headers(3)] - HTTP headers -* link:man:cowboy_req:peer(3)[cowboy_req:peer(3)] - Peer address and port Processed request: @@ -129,7 +134,9 @@ req() :: #{ path := binary(), %% case sensitive qs := binary(), %% case sensitive headers := cowboy:http_headers(), - peer := {inet:ip_address(), inet:port_number()} + peer := {inet:ip_address(), inet:port_number()}, + sock := {inet:ip_address(), inet:port_number()}, + cert := binary() | undefined } ---- |