{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic-rs/elastic-requests/issues/33","repository_url":"https://api.github.com/repos/elastic-rs/elastic-requests","labels_url":"https://api.github.com/repos/elastic-rs/elastic-requests/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/elastic-rs/elastic-requests/issues/33/comments","events_url":"https://api.github.com/repos/elastic-rs/elastic-requests/issues/33/events","html_url":"https://github.com/elastic-rs/elastic-requests/issues/33","id":246953160,"number":33,"title":"Use `http` crate","user":{"login":"KodrAus","id":6721458,"avatar_url":"https://avatars0.githubusercontent.com/u/6721458?v=4","gravatar_id":"","url":"https://api.github.com/users/KodrAus","html_url":"https://github.com/KodrAus","followers_url":"https://api.github.com/users/KodrAus/followers","following_url":"https://api.github.com/users/KodrAus/following{/other_user}","gists_url":"https://api.github.com/users/KodrAus/gists{/gist_id}","starred_url":"https://api.github.com/users/KodrAus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KodrAus/subscriptions","organizations_url":"https://api.github.com/users/KodrAus/orgs","repos_url":"https://api.github.com/users/KodrAus/repos","events_url":"https://api.github.com/users/KodrAus/events{/privacy}","received_events_url":"https://api.github.com/users/KodrAus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-01T04:38:54Z","updated_at":"2017-08-01T04:38:54Z","closed_at":null,"body":"- Remove `HttpRequest` type\r\n- Add a marker trait `Endpoint<B>: Into<http::Request<B>>`\r\n\r\nSo you can always convert an endpoint into a `http::Request`, but upstream we can depend on `Endpoint` so you can't just send any kind of request.\r\n\r\nAlternatively we could have a wrapper type:\r\n\r\n```rust\r\nEndpoint<B>(HttpRequest<B>);\r\n\r\nimpl<B> Endpoint<B> {\r\n    fn into_request(self) -> HttpRequest<B> { ... }\r\n}\r\n```"}}
{"actor":{"display_login":"KodrAus"}}