Repository navigation
feat(http-clients)!: Merge a Cookie header with stored cookies - #2385
Merged
Merged
Conversation
Co-authored-by: Vlada Dusek <v.dusek96@gmail.com>
vdusek
approved these changes
Nov 3, 2026
vdusek
added a commit
that referenced
this pull request
Nov 3, 2026
### Description `HttpClient.send_request` and `context.send_request` take a new `cookies` argument, the cookies to send and store instead of the session cookies for a single call. To send no session cookies, pass `cookies=SessionCookies()`. In `PlaywrightCrawler`, they're sent instead of the browser context cookies, and the response cookies still reach the session through the browser context. ### Issues - Part of: #2307 - Follow-up: #2385 *✍️ Drafted by Claude Code* --------- Co-authored-by: Vlada Dusek <v.dusek96@gmail.com>
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
A
Cookieheader passed with a request or set on the client is now merged with the session cookies, with every HTTP client and incontext.send_requestofPlaywrightCrawler. A cookie in the header wins over a session cookie of the same name and isn't stored in the session. An emptyCookieheader no longer keeps the session cookies out. The v2 upgrade guide describes the change.Issues
HttpClientbase class #2307crawl()andstream()withsend_request#2349✍️ Drafted by Claude Code