prepareWriter method

  1. @internal
void prepareWriter(
  1. HttpResponse httpResponse
)

Implementation

@internal
void prepareWriter(HttpResponse httpResponse) {
  writer!.redirect = httpResponse.redirect;
  writer!.add = httpResponse.add;
  writer!.addStream = httpResponse.addStream;

  writer!.write = httpResponse.write;
  writer!.writeAll = httpResponse.writeAll;
  writer!.writeln = httpResponse.writeln;

  writer!.headers = httpResponse.headers;
  writer!.connectionInfo = httpResponse.connectionInfo;
  writer!.cookies = httpResponse.cookies;
  writer!.setStatus = (int i) => status = i;
}