public void SetupRequest(ServiceRequest req) { // override if (OverrideResponseHeaders != null) { OverrideResponseHeaders.Populate(req.Parameters); } Range?.AddToHeader(req.Headers); if (IfModifiedSince != null) { AddToHeaderIfNotEmpty(OssHeaders.GetObjectIfModifiedSince, DateUtils.FormatRfc822Date(IfModifiedSince.Value), req.Headers); } if (IfUnmodifiedSince != null) { AddToHeaderIfNotEmpty(OssHeaders.GetObjectIfUnmodifiedSince, DateUtils.FormatRfc822Date(IfUnmodifiedSince.Value), req.Headers); } AddToHeaderIfNotEmpty(OssHeaders.GetObjectIfMatch, IfEtagMatch, req.Headers); AddToHeaderIfNotEmpty(OssHeaders.GetObjectIfNoneMatch, IfEtagNoneMatch, req.Headers); }