Class GrpcWebController

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

@Singleton @ExecuteOn("blocking") @Controller("/${micronaut.grpc.web.path:`grpc-web`}") public final class GrpcWebController extends Object
HTTP/1.1 bridge that exposes annotated gRPC services via the gRPC-Web wire protocol.
  • Constructor Details

    • GrpcWebController

      public GrpcWebController(GrpcProxyService grpcProxyService)
  • Method Details

    • invokeMethod

      @Post(uri="/{serviceName}/{methodName}", consumes={"application/grpc-web","application/grpc-web+proto","application/grpc-web-text","application/grpc-web-text+proto"}, produces={"application/grpc-web","application/grpc-web+proto","application/grpc-web-text","application/grpc-web-text+proto"}) public io.micronaut.http.HttpResponse<byte[]> invokeMethod(@PathVariable String serviceName, @PathVariable String methodName, @Body byte[] requestBody, @Header("Content-Type") String contentType)