Skip to content

feat(client): Add redirect option#15

Merged
0x676e67 merged 2 commits intomainfrom
feat
Feb 14, 2025
Merged

feat(client): Add redirect option#15
0x676e67 merged 2 commits intomainfrom
feat

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

This pull request includes updates to the README.md file, enhancements to the ClientParams class, and modifications to the Client implementation in src/client.rs. The changes aim to improve the initialization process, add new configuration options, and enhance the client functionality.

Documentation Updates:

  • README.md: Updated instructions to clarify the environment initialization and release processes. [1] [2]

Enhancements to ClientParams:

  • rnet.pyi: Added cookie_store as an optional parameter in the ClientParams class.
  • src/param/client.rs: Introduced allow_redirects as a new optional parameter in the ClientParams struct and updated the FromPyObject implementation to extract this option. [1] [2]

Modifications to Client Implementation:

  • src/client.rs: Added the redirect::Policy module to handle redirect policies and introduced a macro to apply options with default values. Updated the Client implementation to support the allow_redirects option. [1] [2] [3]

@0x676e67 0x676e67 merged commit 55d9a2f into main Feb 14, 2025
@0x676e67 0x676e67 deleted the feat branch February 14, 2025 03:43
kreedzZhao pushed a commit to kreedzZhao/rnet that referenced this pull request Dec 8, 2025
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.

1 participant