ResponseCopyWith extension

Extends Response to provide copied instances.

on

Methods

copyWith({String? body, int? statusCode, BaseRequest? request, Map<String, String>? headers, bool? isRedirect, bool? persistentConnection, String? reasonPhrase}) Response

Available on Response, provided by the ResponseCopyWith extension

Creates a new instance of Response based of on this. It copies all the properties and overrides the ones sent via parameters.