Class GrpcProxyController

java.lang.Object
io.micronaut.protobuf.json.GrpcProxyController

@Singleton @Controller("/${micronaut.grpc.proxy.path:`grpc-json`}") public final class GrpcProxyController extends Object
Controller handling gRPC method invocations via HTTP requests.
This class acts as a bridge to invoke gRPC methods by forwarding HTTP requests to the corresponding gRPC services, enabling seamless interaction with gRPC endpoints using JSON payloads. It is designed to facilitate gRPC-JSON transcoding through the `GrpcProxyService`.
The `GrpcProxyController` is marked as `@Experimental`, indicating that its API or functionality may undergo changes in future versions. This controller is registered as a singleton and handles requests on the path defined by the configuration property `micronaut.grpc.proxy.path`, defaulting to `grpc-json`.
The controller provides an HTTP POST endpoint to handle gRPC service method invocations and manages various errors, mapping them to appropriate HTTP responses.