Skip to content

refactor!: remove SignableRequest#463

Merged
Xuanwo merged 16 commits intoapache:mainfrom
flaneur2020:remove-signable-requests
Aug 8, 2024
Merged

refactor!: remove SignableRequest#463
Xuanwo merged 16 commits intoapache:mainfrom
flaneur2020:remove-signable-requests

Conversation

@flaneur2020
Copy link
Copy Markdown
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
Copy Markdown
Member

@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 apache:main Aug 8, 2024
@Xuanwo Xuanwo changed the title refactor: remove SignableRequest refactor!: remove SignableRequest Aug 8, 2024
@flaneur2020
Copy link
Copy Markdown
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
Copy Markdown
Member

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