streamRawPredict method
Perform a streaming online prediction with an arbitrary HTTP payload.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
Implementation
Stream<HttpBody> streamRawPredict(StreamRawPredictRequest request) {
final url = Uri.https(
_host,
'/v1beta1/${request.endpoint}:streamRawPredict',
);
return _client.postStreaming(url, body: request).map(HttpBody.fromJson);
}