RequestCopyWith extension
Extends Request to provide copied instances.
- on
Methods
-
copyWith(
{HttpMethod? method, Uri? url, Map< String, String> ? headers, String? body, List<int> ? bodyBytes, Encoding? encoding, bool? followRedirects, int? maxRedirects, bool? persistentConnection}) → Request -
Available on Request, provided by the RequestCopyWith extension
Creates a new instance of Request based of onthis
. It copies all the properties and overrides the ones sent via parameters.