cloneWith method

HttpMethod cloneWith (
  1. {String path,
  2. List<String> methods,
  3. Map<String, String> pathRegEx,
  4. int statusCode,
  5. String mimeType,
  6. String charset: kDefaultCharset,
  7. ResponseProcessor responseProcessor}
)
override

Implementation

HttpMethod cloneWith(
        {String path,
        List<String> methods,
        Map<String, String> pathRegEx,
        int statusCode,
        String mimeType,
        String charset = kDefaultCharset,
        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);