writeAllButBody method

void writeAllButBody(
  1. HttpResponse resp
)

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);
}