line / armeria

Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
https://armeria.dev
Apache License 2.0
4.83k stars 921 forks source link

Add built-in decoder for `HttpDecoder` #3333

Open ikhoon opened 3 years ago

ikhoon commented 3 years ago

For better handling of a stream message of an HTTP request/response, we can provide some built-in decoders for well-known formats such as:

Then users can decode an HTTP request with:

HttpRequest request = ...
Publisher<MyObject> decoded = request.decode(new JsonDecoder(MyObject.class));
trustin commented 3 years ago

and gRPC frames? :laughing: