Skip to content

feat: Add base url for client#33

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

feat: Add base url for client#33
0x676e67 merged 1 commit intomainfrom
feat

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

This pull request includes several changes to add support for a base URL parameter in the Client class, enhance the WebSocket documentation, and update the related Rust structures. The most important changes include adding the base_url parameter, updating the Client class, and adding an example script demonstrating the new functionality.

Support for Base URL Parameter:

  • rnet.pyi: Added base_url as an optional string parameter to the ClientParams class.
  • src/param/client.rs: Added base_url field to the ClientParams struct and updated the FromPyObject implementation to extract this new parameter. [1] [2]

Enhancements to WebSocket Documentation:

  • rnet.pyi: Enhanced the websocket method documentation in the Client class to include arguments, return values, and examples.

Example Script:

  • examples/base_url.py: Added a new example script demonstrating how to use the base_url parameter with the Client class and perform a streaming request.

@0x676e67 0x676e67 changed the title feat: Add base_url for client feat: Add base url for client Feb 18, 2025
@0x676e67 0x676e67 merged commit 401383e into main Feb 18, 2025
@0x676e67 0x676e67 deleted the feat branch February 18, 2025 03:02
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