ResponseWithEtag constructor
ResponseWithEtag(})
Implementation
ResponseWithEtag(dynamic body,
{Map<String, dynamic>? additionalHeaders,
required Request request,
required String? etag,
int? statusCode,
ContentType? contentType})
: super._(
body is Body
? body
: body != null
? Body(body)
: null,
validationData: etag,
request: request,
contentType: contentType,
statusCode: statusCode ?? 200,
additionalHeaders: (additionalHeaders ?? <String, dynamic>{})
..addAll({if (etag != null) HttpHeaders.etagHeader: etag}));