Skip to content
Vegha Docs

gRPC Requests

Vegha can call gRPC services directly. It supports unary calls and all three streaming modes, with method definitions supplied either from a .proto file or via server reflection.

Vegha needs to know the service’s methods and message shapes before it can call them. You can provide this in two ways:

SourceWhen to use
.proto fileYou have the protocol definition files locally.
Server reflectionThe server exposes the gRPC reflection service.

Once the service description is loaded, the available methods become selectable for the request.

Vegha supports every gRPC call type:

TypeClient sendsServer sends
UnaryOne messageOne message
Server-streamingOne messageA stream of messages
Client-streamingA stream of messagesOne message
BidirectionalA stream of messagesA stream of messages

For a unary call, compose the request message and send it. For streaming calls, Vegha lets you send messages on the stream interactively:

  • Server-streaming — send the initial message, then read messages as the server emits them.
  • Client-streaming — send multiple messages, then close the stream to receive the server’s single response.
  • Bidirectional — send and receive messages independently while the call is open.

Messages are composed as structured data matching the message type from the .proto definition.

gRPC metadata is the gRPC equivalent of HTTP headers. Add metadata key/value pairs to the request to send values such as authorization tokens or request identifiers along with the call.

{{variable}} interpolation works in the service address, metadata, and message fields, so you can parameterize gRPC requests the same way you do HTTP requests. See Variables.