Skip to content

feat(resp): Expose Streamer as public API#19

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

feat(resp): Expose Streamer as public API#19
0x676e67 merged 1 commit intomainfrom
feat

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

This pull request includes several changes to the Response class and related files to improve type safety and performance. The most important changes include modifying the stream method to return a Streamer type, adding the Streamer class to the module, and optimizing getter methods for the Response class.

Changes to type safety and method signatures:

  • rnet.pyi: Modified the stream method in the Response class to return a Streamer type instead of typing.Any.
  • src/resp.rs: Updated the stream method in the Response class to return a Streamer instance.

Module and class additions:

  • src/lib.rs: Added the Streamer class to the module.
  • src/lib.rs: Updated the import statement to include the Streamer class.

Performance optimizations:

@0x676e67 0x676e67 merged commit f937f91 into main Feb 14, 2025
@0x676e67 0x676e67 deleted the feat branch February 14, 2025 07:56
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