Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: remove SignableRequest #463

Merged
merged 16 commits into from
Aug 8, 2024

Conversation

flaneur2020
Copy link
Contributor

@flaneur2020 flaneur2020 commented Aug 8, 2024

this PR removes SignableRequest trait and moved the convert logic into SigningContext directly.

now instead of signing an Request object, we choose to sign the http::request::Parts.

with this refactor, we can shrink the compiled binary without the duplication introduced from different generic parameters.

this is considered as a BREAKING CHANGE of the api.

fixes #460

@flaneur2020 flaneur2020 changed the title [WIP] refactor: removes SignableRequest refactor: removes SignableRequest Aug 8, 2024
@flaneur2020 flaneur2020 marked this pull request as ready for review August 8, 2024 11:56
@flaneur2020 flaneur2020 changed the title refactor: removes SignableRequest refactor: remove SignableRequest Aug 8, 2024
Copy link
Owner

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks a lot for taking this hard work!

@Xuanwo Xuanwo merged commit b2df429 into Xuanwo:main Aug 8, 2024
19 checks passed
@Xuanwo Xuanwo changed the title refactor: remove SignableRequest refactor!: remove SignableRequest Aug 8, 2024
@flaneur2020
Copy link
Contributor Author

@Xuanwo can you help release a version of reqsign? i'll raise a pr in opendal with the related api changes

@Xuanwo
Copy link
Owner

Xuanwo commented Aug 9, 2024

@Xuanwo can you help release a version of reqsign? i'll raise a pr in opendal with the related api changes

Hi, thank you very much for your effort. I plan to review the entire codebase to evaluate the overall design before making a release. This will happen today.

Xuanwo pushed a commit that referenced this pull request Aug 9, 2024
sorry i did not recognize that the readme is also needed to be modified
in #463

if there're other docs need to be modified together, please let me know
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.

refactor: remove SignableRequest
2 participants