async def simple_get(url, loop):
print("<STR_LIT>", url, url.__class__)<EOL>session = ClientSession(loop=loop)<EOL>response = await session.request('<STR_LIT:GET>', url)<EOL>if response.status < <NUM_LIT:200> or response.status >= <NUM_LIT>:<EOL><INDENT>response.close()<EOL>await session.close()<EOL>return None, response.status<EOL><DEDENT>data = await response.content.read()<EOL>response.close()<EOL>await session.close()<EOL>return data, response.status<EOL>
Perform a GET-request to a specified URL.