Skip to content

Some improvements #101

@AdiEcho

Description

@AdiEcho
  1. get_cookies and set_cookies use domain instead of url to get cookies
  2. Add argument follow_redirects for request function
  3. The headers in the request method should not be ignored but should be merged with the default headers.

further

  1. Add a cookies variable to AsyncClient, pointing to the internal cookies implementation. This variable can be used to retrieve all currently stored cookies, set a specific cookie value, or get a specific cookie value. You can refer to the implementation of other networking libraries for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions