feat: add getCookies and setCookie methods to Session#87
Merged
sqdshguy merged 3 commits intosqdshguy:masterfrom Feb 21, 2026
Merged
feat: add getCookies and setCookie methods to Session#87sqdshguy merged 3 commits intosqdshguy:masterfrom
sqdshguy merged 3 commits intosqdshguy:masterfrom
Conversation
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.
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Expose cookie jar read/write through the
SessionAPI, allowing callers to inspect and set cookies scoped to a given URL.session.getCookies(url)— returns aRecord<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 URLAlso regenerates browser profiles after wreq-util update and adds documentation for the new methods.
🔗 Related Issue
N/A
🎯 Type of Change