copyWith method
Creates a new Request by copying existing values and applying specified changes.
Implementation
Request copyWith({
Map<String, Object?>? headers,
String? path,
Object? body,
}) {
return Request._(_request.change(headers: headers, path: path, body: body));
}