init(of:metadata:bodyParts:)

Creates a new accepted response.

ClientResponse.swift:334
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.