change method

  1. @override
HttpApiRequest change({
  1. Map<String, String>? headers,
  2. Map<String, dynamic>? context,
  3. ApiCodec? codec,
})
override

Implementation

@override
HttpApiRequest change({
  Map<String, String>? headers,
  Map<String, dynamic>? context,
  ApiCodec? codec,
}) {
  return HttpApiRequest._(
    url: url,
    method: method,
    headers: {...this.headers, ...headers ?? {}},
    parameters: parameters,
    context: {...this.context, ...context ?? {}},
    codec: codec ?? this.codec,
  );
}