{"action":"created","issue":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/1560","repository_url":"https://api.github.com/repos/guzzle/guzzle","labels_url":"https://api.github.com/repos/guzzle/guzzle/issues/1560/labels{/name}","comments_url":"https://api.github.com/repos/guzzle/guzzle/issues/1560/comments","events_url":"https://api.github.com/repos/guzzle/guzzle/issues/1560/events","html_url":"https://github.com/guzzle/guzzle/issues/1560","id":172406898,"number":1560,"title":"Missing request object in async on v6","user":{"login":"cdekok","id":190633,"avatar_url":"https://avatars.githubusercontent.com/u/190633?v=3","gravatar_id":"","url":"https://api.github.com/users/cdekok","html_url":"https://github.com/cdekok","followers_url":"https://api.github.com/users/cdekok/followers","following_url":"https://api.github.com/users/cdekok/following{/other_user}","gists_url":"https://api.github.com/users/cdekok/gists{/gist_id}","starred_url":"https://api.github.com/users/cdekok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdekok/subscriptions","organizations_url":"https://api.github.com/users/cdekok/orgs","repos_url":"https://api.github.com/users/cdekok/repos","events_url":"https://api.github.com/users/cdekok/events{/privacy}","received_events_url":"https://api.github.com/users/cdekok/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-22T09:30:53Z","updated_at":"2016-08-24T22:01:03Z","closed_at":"2016-08-24T22:01:03Z","body":"Currently in the async method it's not possible to use the request object on a successful response.\r\nThe previous interface had a get method for the request and response only the interface now only describes the response interface as argument is there any reason the request is not given as 2nd argument? \r\n\r\nI was using that mainly for debugging so it's not realy a big deal but it would still be nice to at least have the option to access the request or is there another way to do it now?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/comments/242222122","html_url":"https://github.com/guzzle/guzzle/issues/1560#issuecomment-242222122","issue_url":"https://api.github.com/repos/guzzle/guzzle/issues/1560","id":242222122,"user":{"login":"mtdowling","id":190930,"avatar_url":"https://avatars.githubusercontent.com/u/190930?v=3","gravatar_id":"","url":"https://api.github.com/users/mtdowling","html_url":"https://github.com/mtdowling","followers_url":"https://api.github.com/users/mtdowling/followers","following_url":"https://api.github.com/users/mtdowling/following{/other_user}","gists_url":"https://api.github.com/users/mtdowling/gists{/gist_id}","starred_url":"https://api.github.com/users/mtdowling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtdowling/subscriptions","organizations_url":"https://api.github.com/users/mtdowling/orgs","repos_url":"https://api.github.com/users/mtdowling/repos","events_url":"https://api.github.com/users/mtdowling/events{/privacy}","received_events_url":"https://api.github.com/users/mtdowling/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T22:01:03Z","updated_at":"2016-08-24T22:01:03Z","body":"This was removed in Guzzle 6 for several reasons: to simplify the API, remove unnecessary/unrelated data from a value object (i.e., creating a response should not require me to create a request), reduce circular references that were present in previous versions of Guzzle, and adhere to PSR-7 without needing to extend the PSR-7 interface (which would have resulted in lots of adapter wrapping).\r\n\r\nYou could create a wrapper/helper method that decorates a Guzzle client async call so that it stores a reference to the request being sent and chains the promise such that it changes the normal Guzzle promise return value of `Promise<ResponseInterface>` to something like `Promise<[ResponseInterface, RequestInterface]>`."}}
{"actor":{"display_login":"mtdowling"}}