copy method

Returns a copy of this request with copied collections.

Implementation

NetLensHttpRequest copy() => NetLensHttpRequest()
  ..size = size
  ..time = time
  ..headers = Map<String, String>.of(headers)
  ..body = body
  ..contentType = contentType
  ..cookies = List<Cookie>.of(cookies)
  ..queryParameters = Map<String, dynamic>.of(queryParameters)
  ..formDataFiles = formDataFiles == null
      ? null
      : List<NetLensFormDataFile>.of(formDataFiles!)
  ..formDataFields = formDataFields == null
      ? null
      : List<NetLensFormDataField>.of(formDataFields!);