github cloudwego/volo volo-http-0.2.6
Volo-HTTP 0.2.6

latest releases: volo-http-0.2.8, volo-http-0.2.7
15 days ago

What's Changed

Bugfix

Fix the problem that Json has the wrong Content-Type

In the previous code, Json only implemented TryInto<Body>, but not IntoResponse. IntoResponse is derived from impl IntoResponse for T where T: TryInto<Body>, which can convert Json to ServerResponse, but lacks Content-Type.

To solve this problem, we removed TryInto<Body> of Json, used IntoResponse of Json instead with inserting Content-Type into ServerResponse. In addition, we also implemented IntoResponse for Form with inserting Content-Type.

  • feat(volo-http): impl IntoResponse for Json and Form by @wfly1998 in #441

Full Changelog: volo-http-0.2.5...volo-http-0.2.6

Don't miss a new volo release

NewReleases is sending notifications on new releases.