writeAllButBody method
Implementation
void writeAllButBody(HttpResponse resp) {
resp.statusCode = statusCode;
for (dynamic name in headers.headers.keys) {
resp.headers.set(name, headers.headers[name]!);
}
resp.cookies.addAll(cookies);
}