Initializergrpc-swift 2.0.0GRPCCore
init(of:metadata:bodyParts:)
Creates a new accepted response.
init(of messageType: Message.Type = Message.self, metadata: Metadata, bodyParts: RPCAsyncSequence<Contents.BodyPart, any Error>)
Parameters
- messageType
The type of message.
- metadata
Metadata received from the server at the beginning of the response.
- bodyParts
An
RPCAsyncSequence
of response parts received from the server.