Skip to content

Implement HTTPException set_cookie() and del_cookie() methods #4277

Closed
@asvetlov

Description

See aio-libs/aiohttp-session#396 for the context.

Implementation thoughts:

  1. .cookies property is also needed
  2. set_cookie() and del_cookie() should update headers immediately, HTTPException has no .prepare() method and should not have it.
  3. Backport is not needed, in 3.x HTTPException is derived from Response and have all mentioned methods already.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions