add Response::remote_addr() method

The new `remote_addr` method returns an `Option<SocketAddr>`, which is
`Some` if the underlying transport uses socket addresses.

Closes #373
This commit is contained in:
Sean McArthur
2018-10-26 14:23:21 -07:00
parent c91f37babf
commit 478ef9bf15
4 changed files with 41 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ bytes = "0.4"
encoding_rs = "0.8"
futures = "0.1.23"
http = "0.1.10"
hyper = "0.12.7"
hyper = "0.12.13"
hyper-old-types = { version = "0.11", optional = true, features = ["compat"] }
hyper-tls = "0.3"
libflate = "0.1.18"