1
0
mirror of https://github.com/rwf2/Rocket.git synced 2025-02-20 07:32:01 +00:00
Commit Graph

2 Commits

Author SHA1 Message Date
Sergio Benitez
3bebdcc53d Add Response::body_string(). Use it in all tests. 2017-04-14 01:59:28 -07:00
Sergio Benitez
41aecc3e7f Expose the remote address via remote() in Request.
This commit also includes the following changes:

  * `FromRequest` for `SocketAddr` implemented: extracts remote address.
  * All built-in `FromRequest` implementations are documented.
  * Request preprocessing overrides remote IP with value from X-Real-IP header.
  * `MockRequest` allows setting the remote address with `remote()`.

Resolves .
2017-01-13 07:50:51 -08:00