Skip to content

feat: add getCookies and setCookie methods to Session#87

Merged
sqdshguy merged 3 commits intosqdshguy:masterfrom
eav93:master
Feb 21, 2026
Merged

feat: add getCookies and setCookie methods to Session#87
sqdshguy merged 3 commits intosqdshguy:masterfrom
eav93:master

Conversation

@eav93
Copy link
Contributor

@eav93 eav93 commented Feb 20, 2026

📝 Description

Expose cookie jar read/write through the Session API, allowing callers to inspect and set cookies scoped to a given URL.

  • session.getCookies(url) — returns a Record<string, string> of cookies that would be sent to the given URL (RFC 6265 domain/path matching)
  • session.setCookie(name, value, url) — adds a cookie to the session jar scoped to the given URL

Also regenerates browser profiles after wreq-util update and adds documentation for the new methods.

🔗 Related Issue

N/A

🎯 Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 📚 Documentation update
  • 🔧 Build/CI configuration

Anton and others added 3 commits February 21, 2026 01:21
Expose cookie jar read/write through the Session API, allowing
callers to inspect and set cookies scoped to a given URL.

Also regenerate browser profiles after wreq-util update.
@sqdshguy
Copy link
Owner

Wow the PR template looks so slop lmao. It's a leftover from the original repo, so I'll definitely have to clean it up. Added tests and input validation, merging after CI finishes

@sqdshguy sqdshguy merged commit 5d27156 into sqdshguy:master Feb 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants