Instance Propertygrpc-swift 2.0.0GRPCCore
message
Returns the message to send to the client.
var message: Message { get throws }
Returns the message to send to the client.
var message: Message { get throws }
where Message:Sendable
import GRPCCore
A gRPC library for Swift written natively in Swift.
struct ServerResponse<Message> where Message : Sendable
A response for a single message sent by a server.
protocol Sendable
struct RPCError
An error representing the outcome of an RPC.
init(message: Message, metadata: Metadata = [:], trailingMetadata: Metadata = [:])
Creates a new accepted response.
init(of messageType: Message.Type = Message.self, error: RPCError)
Creates a new failed response.
var metadata: Metadata { get set }
The metadata to be sent to the client at the start of the response.
var trailingMetadata: Metadata { get }
Returns metadata to be sent to the client at the end of the response.