Skip to content

Simplify usage of cookies #123

@barjin

Description

@barjin

While it's currently possible to work with Cookies (by manually updating the HTTP headers of the request and parsing for the set-cookie headers in the response) in both impit language bindings, it's far from ergonomic.

httpx (in Python) exposes their own wrapper over CookieJar, which might be a good starting point.

The fetch API in JS doesn't seem to have a dedicated cookies option, but adding one (something like fetch('https://example.org', {cookies: {...}})) might actually result in a net positive (despite diverting from the original API).

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascriptThis issue is in the JS impit bindings.pythonThis issue is in the Python impit bindings.rustThis issue concerns the Rust part of this monorepo.t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions