Skip to content

feat(cookie): improve cookie_provider for better ergonomics and flexibility - #895

Merged
0x676e67 merged 2 commits into
mainfrom
cookie
Aug 12, 2025
Merged

feat(cookie): improve cookie_provider for better ergonomics and flexibility#895
0x676e67 merged 2 commits into
mainfrom
cookie

Conversation

@0x676e67

Copy link
Copy Markdown
Owner

No description provided.

@0x676e67
0x676e67 requested a review from Copilot August 12, 2025 20:04
@0x676e67
0x676e67 marked this pull request as ready for review August 12, 2025 20:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the ergonomics and flexibility of cookie providers by introducing a new IntoCookieStore trait that enables automatic conversion of various cookie store types. The main purpose is to make the cookie_provider API more user-friendly by accepting different types of cookie stores without requiring manual Arc wrapping.

  • Introduces IntoCookieStore trait with implementations for CookieStore, Arc<T>, and Arc<dyn CookieStore>
  • Updates cookie_provider method to accept any type implementing IntoCookieStore
  • Includes a minor documentation fix for the DNS resolver method

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/cookie.rs Adds IntoCookieStore trait and implementations for ergonomic cookie store conversion
src/client/http/mod.rs Updates cookie_provider method signature and fixes DNS resolver documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/client/http/mod.rs Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@0x676e67
0x676e67 merged commit 70dd6d9 into main Aug 12, 2025
18 checks passed
@0x676e67
0x676e67 deleted the cookie branch August 12, 2025 21:27
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