{"action":"created","issue":{"url":"https://api.github.com/repos/carllerche/tower-web/issues/71","repository_url":"https://api.github.com/repos/carllerche/tower-web","labels_url":"https://api.github.com/repos/carllerche/tower-web/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/carllerche/tower-web/issues/71/comments","events_url":"https://api.github.com/repos/carllerche/tower-web/issues/71/events","html_url":"https://github.com/carllerche/tower-web/issues/71","id":352030031,"node_id":"MDU6SXNzdWUzNTIwMzAwMzE=","number":71,"title":"There should be a way to get a peer's IP address","user":{"login":"miquels","id":6455542,"node_id":"MDQ6VXNlcjY0NTU1NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/6455542?v=4","gravatar_id":"","url":"https://api.github.com/users/miquels","html_url":"https://github.com/miquels","followers_url":"https://api.github.com/users/miquels/followers","following_url":"https://api.github.com/users/miquels/following{/other_user}","gists_url":"https://api.github.com/users/miquels/gists{/gist_id}","starred_url":"https://api.github.com/users/miquels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miquels/subscriptions","organizations_url":"https://api.github.com/users/miquels/orgs","repos_url":"https://api.github.com/users/miquels/repos","events_url":"https://api.github.com/users/miquels/events{/privacy}","received_events_url":"https://api.github.com/users/miquels/received_events","type":"User","site_admin":false},"labels":[{"id":864963807,"node_id":"MDU6TGFiZWw4NjQ5NjM4MDc=","url":"https://api.github.com/repos/carllerche/tower-web/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-20T08:17:06Z","updated_at":"2018-08-28T08:09:00Z","closed_at":null,"author_association":"NONE","body":"There should be a way to get the peer's IP address, e.g. tcpstream.peer_addr(). A peer_addr() or client_addr() method should be added to the request struct.\r\n\r\nIf this issue should be filed with hyper instead let me know."},"comment":{"url":"https://api.github.com/repos/carllerche/tower-web/issues/comments/416491069","html_url":"https://github.com/carllerche/tower-web/issues/71#issuecomment-416491069","issue_url":"https://api.github.com/repos/carllerche/tower-web/issues/71","id":416491069,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjQ5MTA2OQ==","user":{"login":"miquels","id":6455542,"node_id":"MDQ6VXNlcjY0NTU1NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/6455542?v=4","gravatar_id":"","url":"https://api.github.com/users/miquels","html_url":"https://github.com/miquels","followers_url":"https://api.github.com/users/miquels/followers","following_url":"https://api.github.com/users/miquels/following{/other_user}","gists_url":"https://api.github.com/users/miquels/gists{/gist_id}","starred_url":"https://api.github.com/users/miquels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miquels/subscriptions","organizations_url":"https://api.github.com/users/miquels/orgs","repos_url":"https://api.github.com/users/miquels/repos","events_url":"https://api.github.com/users/miquels/events{/privacy}","received_events_url":"https://api.github.com/users/miquels/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T08:09:00Z","updated_at":"2018-08-28T08:09:00Z","author_association":"NONE","body":"> >Storing it in the http Extensions map.\r\n>\r\n> Probably best option, but the sad part is that it means everyone pays to store the value even though only some need access to it...\r\n\r\nHow about doing that only when asked for, say by adding a method to the [Builder](https://hyper.rs/hyper/master/hyper/server/struct.Builder.html) like `pub fn save_client_ip_address(self, val: bool) -> Self` ?"}}
{"actor":{"display_login":"miquels"}}