cloneWith method
Implementation
HttpMethod cloneWith(
{String? path,
List<String>? methods,
Map<String, String>? pathRegEx,
int? statusCode,
String? mimeType,
String? charset,
ResponseProcessor? responseProcessor}) =>
HttpMethod(
path: path ?? this.path,
methods: methods ?? this.methods,
pathRegEx: pathRegEx ?? this.pathRegEx,
statusCode: statusCode ?? this.statusCode,
mimeType: mimeType ?? this.mimeType,
charset: charset ?? this.charset,
responseProcessor: responseProcessor ?? this.responseProcessor);