Skip to content

Conversation

@sunfishcode
Copy link
Member

Since as of #19, wstd is using the http crate's types for HeaderMap, Method, and Uri, switch it to use the http crate's types for Request, Response, and StatusCode too. These types have a few more features, and this change makes wstd more interoperable with code that uses the http crate.

This also helps with #34, as the new Request and Response types here are independent of being incoming or outgoing.

Since as of bytecodealliance#19, wstd is using the http crate's types for `HeaderMap`,
`Method`, and `Uri`, switch it to use the http crate's types for `Request`,
`Response`, and `StatusCode` too. These types have a few more features,
and this change makes wstd more interoperable with code that uses the http
crate.

This also helps with bytecodealliance#34, as the new `Request` and `Response` types here
are independent of being incoming or outgoing.
Copy link
Contributor

@pchickey pchickey left a comment

Choose a reason for hiding this comment

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

Awesome, love it!

@pchickey pchickey merged commit 97200cb into bytecodealliance:main Jan 2, 2025
4 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/http-types branch January 3, 2025 00:43
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