Skip to content

feat(resp): Wrapper easy-to-use StatusCode#17

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

feat(resp): Wrapper easy-to-use StatusCode#17
0x676e67 merged 4 commits intomainfrom
feat

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

@0x676e67 0x676e67 commented Feb 14, 2025

This pull request includes changes to the Response class in the rnet.pyi file and the Response implementation in the src/resp.rs file. The main focus of these changes is to update the type of the status_code attribute and simplify its getter method.

Type update:

  • rnet.pyi: Changed the type of status_code from typing.Any to builtins.int.

Getter method simplification:

  • src/resp.rs: Simplified the status_code getter method by returning the status code directly as a u16 instead of creating a Python object.

@0x676e67 0x676e67 changed the title feat(resp): Packaging easy-to-use StatusCode feat(resp): Wrapper easy-to-use StatusCode Feb 14, 2025
@0x676e67 0x676e67 merged commit eceb4b0 into main Feb 14, 2025
@0x676e67 0x676e67 deleted the feat branch February 14, 2025 06:53
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