toWire method
HttpResponse
toWire()
Converts to a gRPC response.
Implementation
$ap.HttpResponse toWire() {
return $ap.HttpResponse(
status: status,
body: utf8.encode(body),
headers: headers
.map((key, value) => MapEntry(key, $ap.HeaderValue(value: value))),
);
}