clone method

OutgoingRequest clone()

Implementation

OutgoingRequest clone() {
  OutgoingRequest request = OutgoingRequest(method, ruri, ua);

  headers.forEach((String? name, dynamic value) {
    request.headers[name] = headers[name];
  });

  request.body = body;
  request.extraHeaders = utils.cloneArray(extraHeaders);
  request.to = to;
  request.from = from;
  request.call_id = call_id;
  request.cseq = cseq;

  return request;
}