Skip to content

feat: Shortcut method request support redirect#18

Merged
0x676e67 merged 1 commit intomainfrom
feat
Feb 14, 2025
Merged

feat: Shortcut method request support redirect#18
0x676e67 merged 1 commit intomainfrom
feat

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

This pull request includes several changes to improve the handling of request parameters and macro definitions in the Rust codebase. The most important changes include adding support for redirect options, moving a macro definition, and updating the RequestParams struct and its implementation.

Improvements to request parameters:

  • src/client.rs: Added support for redirect options in the execute_request function by applying the allow_redirects parameter.
  • src/param/req.rs: Updated the RequestParams struct to include an allow_redirects field and modified the FromPyObject implementation to extract this option. [1] [2]

Macro definition changes:

  • src/lib.rs: Removed the define_constants macro definition.
  • src/types/mod.rs: Added the define_constants macro definition to this module.

@0x676e67 0x676e67 changed the title feat: Shortcut method request supports redirect feat: Shortcut method request support redirect Feb 14, 2025
@0x676e67 0x676e67 merged commit 21410bd into main Feb 14, 2025
@0x676e67 0x676e67 deleted the feat branch February 14, 2025 07:33
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