writeResponse method
Writes body of the HTTP response from body property
Different ValueTypes
are differently when they are written
to the response.
Implementation
Future<void> writeResponse(HttpResponse resp) async {
writeAllButBody(resp);
if (body != null) {
await resp.addStream(body!);
}
}