{"action":"closed","issue":{"url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2464","repository_url":"https://api.github.com/repos/aio-libs/aiohttp","labels_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2464/labels{/name}","comments_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2464/comments","events_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2464/events","html_url":"https://github.com/aio-libs/aiohttp/issues/2464","id":271224569,"number":2464,"title":"Create a request object beforehand","user":{"login":"Smosker","id":16837024,"avatar_url":"https://avatars3.githubusercontent.com/u/16837024?v=4","gravatar_id":"","url":"https://api.github.com/users/Smosker","html_url":"https://github.com/Smosker","followers_url":"https://api.github.com/users/Smosker/followers","following_url":"https://api.github.com/users/Smosker/following{/other_user}","gists_url":"https://api.github.com/users/Smosker/gists{/gist_id}","starred_url":"https://api.github.com/users/Smosker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smosker/subscriptions","organizations_url":"https://api.github.com/users/Smosker/orgs","repos_url":"https://api.github.com/users/Smosker/repos","events_url":"https://api.github.com/users/Smosker/events{/privacy}","received_events_url":"https://api.github.com/users/Smosker/received_events","type":"User","site_admin":false},"labels":[{"id":58986079,"url":"https://api.github.com/repos/aio-libs/aiohttp/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-04T20:53:46Z","updated_at":"2017-11-05T17:47:16Z","closed_at":"2017-11-05T17:47:16Z","author_association":"NONE","body":"Hello! \r\nI have such a question - for now i user requests library and want to switch to using aiohttp, can you please tell me with request my program works like this:\r\n\r\n```\r\nsession = requests.Session()\r\nrequests_to_fetch = []\r\nfor url,data,json,method in some_iterable:\r\n    requests_to_fetch.append(\r\n        requests.Request(method=method, url=url, data=data, json=json)\r\n    )\r\n...\r\nfor request in requests_to_fetch:\r\n    response = session.send(session.prepare_request(request))\r\n...\r\n```\r\n\r\nBut in aiohttp i cant find something like Request object which i can made before making actual request. Is where some class to do so?"}}
{"actor":{"display_login":"webknjaz"}}