BaseResponseCopyWith extension

on

Methods

copyWith({int? statusCode, BaseRequest? request, Map<String, String>? headers, bool? isRedirect, bool? persistentConnection, String? reasonPhrase, String? body, Stream<List<int>>? stream, int? contentLength}) BaseResponse
Creates a new instance of BaseResponse based of on this. It copies all the properties and overrides the ones sent via parameters.