Skip to content

Drop await aiohttp.request(...) #2540

@asvetlov

Description

Closing request/session is too error-prone in the case, especially if an exception was generated.

The only robust solution is prohibiting await request() syntax but supporting async with request() as resp: only.

After implementing proposed restriction we'll get very clean context and behavior.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions