writeResponse method

  1. @override
void writeResponse(
  1. HttpResponse resp
)
override

Writes body of the HTTP response from body property

Different ValueTypes are differently when they are written to the response.

Implementation

@override
void writeResponse(HttpResponse resp) {
  writeAllButBody(resp);
  if (body != null) {
    resp.write(body!);
  }
}