Skip to content

Switch to the http crate's Request, Response, and StatusCode. - #41

Merged
pchickey merged 2 commits into
bytecodealliance:mainfrom
sunfishcode:sunfishcode/http-types
Jan 2, 2025
Merged

Switch to the http crate's Request, Response, and StatusCode.#41
pchickey merged 2 commits into
bytecodealliance:mainfrom
sunfishcode:sunfishcode/http-types

Conversation

@sunfishcode

Copy link
Copy Markdown
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.

@pchickeypchickey left a comment

Copy link
Copy Markdown
Contributor

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:mainJan 2, 2025
@sunfishcode
sunfishcode deleted the sunfishcode/http-types branch January 3, 2025 00:43
Sign up for freeto 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

@sunfishcode@pchickey