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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.HttpResponse<byte[]> invokeMethod(String serviceName, String methodName, byte[] requestBody, String contentType)
-
Constructor Details
-
GrpcWebController
-
-
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)
-