github cloudwego/volo volo-http-0.4.0-rc.1
Volo-HTTP 0.4.0-rc.1

latest releases: volo-cli-0.11.3, volo-build-0.11.5, volo-thrift-0.11.2...
pre-release3 months ago

What's Changed

In the previous implementation, for the sake of performance, we used a lot of generics in the Client and minimized the use of Box. However, we found that this would make the Client too complicated and the Client-related errors difficult to understand.

To avoid the Client type being too complicated, we used Box in the outermost layer to wrap the inner dyn Future, which would not have a high performance overhead while ensuring that the type is simple and easy to use.

Break Changes

  • The complex type aliases have been removed, including:
    • ClientMetaService
    • ClientService
    • SimpleClient
    • DefaultClientOuterService
    • DefaultClient
  • Generic types of Client has been changed from inner service (S) to request body and response body (ReqBody and RespBody).
    • In most cases, users can use Client directly and ignore the generic types.

Others

This PR adds a debugging layer for unit tests. It will dump request and response via println, and if any unit test fails, cargo will print its output by default.

Detailed commits

New Contributors

Full Changelog: volo-http-0.3.1...volo-http-0.4.0-rc.1

Don't miss a new volo release

NewReleases is sending notifications on new releases.