aboutsummaryrefslogtreecommitdiffstats
path: root/guide/req.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-04-11 14:42:57 +0200
committerLoïc Hoguin <[email protected]>2013-04-11 22:25:36 +0200
commit6256429dc97d69cbb19076acfea8e1fc3efb1286 (patch)
treef4be9062139d4c6595f88e075b71ce4aae477e6e /guide/req.md
parent67beb4d01db70d38d9dd389fd5e2ea073bab44e7 (diff)
downloadcowboy-6256429dc97d69cbb19076acfea8e1fc3efb1286.tar.gz
cowboy-6256429dc97d69cbb19076acfea8e1fc3efb1286.tar.bz2
cowboy-6256429dc97d69cbb19076acfea8e1fc3efb1286.zip
Remove cowboy_req:peer_addr/1
This kind of function is highly dependent on the proxy used, therefore parsing was added for x-forwarded-for instead and we just let users write the function that works for them. The code can be easily extracted if anyone was using the function.
Diffstat (limited to 'guide/req.md')
-rw-r--r--guide/req.md1
1 files changed, 0 insertions, 1 deletions
diff --git a/guide/req.md b/guide/req.md
index 13b5334..aa3bf4b 100644
--- a/guide/req.md
+++ b/guide/req.md
@@ -33,7 +33,6 @@ The following access functions are defined in `cowboy_req`:
* `method/1`: the request method (`<<"GET">>`, `<<"POST">>`...)
* `version/1`: the HTTP version (`{1,0}` or `{1,1}`)
* `peer/1`: the peer address and port number
- * `peer_addr/1`: the peer address guessed using the request headers
* `host/1`: the hostname requested
* `host_info/1`: the result of the `[...]` match on the host
* `port/1`: the port number used for the connection