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

wasmtime-wasi-http collection of small refactors #8332

Merged
merged 10 commits into from
Apr 11, 2024

Conversation

rylev
Copy link
Contributor

@rylev rylev commented Apr 11, 2024

This is a collection of refactors of wasmtime-wasi-http in an attempt to make the API slightly easier to use and more documented.

The various refactorings are all small enough that it seems appropriate to batch them into one PR. Each individual commit should be reviewable as a standalone refactor and any of them should be able to be dropped from the PR should there not be consensus that the refactor is appropriate.

rylev added 9 commits April 11, 2024 18:37
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
…equest

This rename makes the role of the type easier to understand and draws a
bigger difference between it and HostOutgoingRequest.

Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
The authority is already encoded in the request itself.

Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Calling a public type "internal" seems strange. This also adds docs to
the type.
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Don't require implementors to do resource management.
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
@rylev rylev requested a review from a team as a code owner April 11, 2024 17:48
@rylev rylev requested review from alexcrichton and removed request for a team April 11, 2024 17:48
@rylev
Copy link
Contributor Author

rylev commented Apr 11, 2024

CI is failing, but I'm going to wait for an initial review before proceeding with fixing it.

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Looks like nice cleanups to me 👍

Thanks!

Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
@rylev rylev requested a review from alexcrichton April 11, 2024 20:43
@alexcrichton alexcrichton added this pull request to the merge queue Apr 11, 2024
Merged via the queue into bytecodealliance:main with commit 080994c Apr 11, 2024
19 checks passed
@rylev rylev deleted the wasi-http-refactor branch April 11, 2024 21:23
@rylev rylev mentioned this pull request Apr 12, 2024
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.

2 participants