Пример #1
0
 public static IResponse CacheControl(this IHas @this, Func <CacheControlHeaderValue, bool> predicate)
 => @this.AssertHeaderMatches("Cache-Control", headers => headers.CacheControl, predicate);
Пример #2
0
 public static IResponse Allow(this IHas @this, Func <IEnumerable <string>, bool> predicate)
 => @this.AssertHeaderMatches("Allow", headers => headers.Allow, predicate);
Пример #3
0
 public static IResponse Date(this IHas @this, Func <DateTimeOffset?, bool> predicate)
 => @this.AssertHeaderMatches("Date", headers => headers.Date, predicate);
Пример #4
0
 public static IResponse Upgrade(this IHas @this, Func <HttpHeaderValueCollection <ProductHeaderValue>, bool> predicate)
 => @this.AssertHeaderMatches("Upgrade", headers => headers.Upgrade, predicate);
Пример #5
0
 public static IResponse Trailer(this IHas @this, Func <HttpHeaderValueCollection <string>, bool> predicate)
 => @this.AssertHeaderMatches("Trailer", headers => headers.Trailer, predicate);
Пример #6
0
 public static IResponse WwwAuthenticate(this IHas @this, Func <HttpHeaderValueCollection <AuthenticationHeaderValue>, bool> predicate)
 => @this.AssertHeaderMatches("WWW-Authenticate", headers => headers.WwwAuthenticate, predicate);
Пример #7
0
 public static IResponse Via(this IHas @this, Func <HttpHeaderValueCollection <ViaHeaderValue>, bool> predicate)
 => @this.AssertHeaderMatches("Via", headers => headers.Via, predicate);
Пример #8
0
 public static IResponse ContentRange(this IHas @this, Func <ContentRangeHeaderValue, bool> predicate)
 => @this.AssertHeaderMatches("Content-Range", headers => headers.ContentRange, predicate);
Пример #9
0
 public static IResponse ContentType(this IHas @this, Func <MediaTypeHeaderValue, bool> predicate)
 => @this.AssertHeaderMatches("Content-Type", headers => headers.ContentType, predicate);
Пример #10
0
 public static IResponse ContentLength(this IHas @this, Func <long?, bool> predicate)
 => @this.AssertHeaderMatches("Content-Length", headers => headers.ContentLength, predicate);
Пример #11
0
 public static IResponse ContentMD5(this IHas @this, Func <byte[], bool> predicate)
 => @this.AssertHeaderMatches("Content-MD5", headers => headers.ContentMD5, predicate);
Пример #12
0
 public static IResponse ContentLanguage(this IHas @this, Func <IEnumerable <string>, bool> predicate)
 => @this.AssertHeaderMatches("Content-Language", headers => headers.ContentLanguage, predicate);
Пример #13
0
 public static IResponse ContentEncoding(this IHas @this, Func <IEnumerable <string>, bool> predicate)
 => @this.AssertHeaderMatches("Content-Encoding", headers => headers.ContentEncoding, predicate);
Пример #14
0
 public static IResponse ContentDisposition(this IHas @this, Func <ContentDispositionHeaderValue, bool> predicate)
 => @this.AssertHeaderMatches("Content-Disposition", headers => headers.ContentDisposition, predicate);
Пример #15
0
 public static IResponse Age(this IHas @this, Func <TimeSpan?, bool> predicate)
 => @this.AssertHeaderMatches("Age", headers => headers.Age, predicate);
Пример #16
0
 public static IResponse Expires(this IHas @this, Func <DateTimeOffset?, bool> predicate)
 => @this.AssertHeaderMatches("Expires", headers => headers.Expires, predicate);
Пример #17
0
 public static IResponse Warning(this IHas @this, Func <HttpHeaderValueCollection <WarningHeaderValue>, bool> predicate)
 => @this.AssertHeaderMatches("Warning", headers => headers.Warning, predicate);
Пример #18
0
 public static IResponse RetryAfter(this IHas @this, Func <RetryConditionHeaderValue, bool> predicate)
 => @this.AssertHeaderMatches("Retry-After", headers => headers.RetryAfter, predicate);
Пример #19
0
 public static IResponse AcceptRanges(this IHas @this, Func <HttpHeaderValueCollection <string>, bool> predicate)
 => @this.AssertHeaderMatches("Accept-Ranges", headers => headers.AcceptRanges, predicate);
Пример #20
0
 public static IResponse Pragma(this IHas @this, Func <HttpHeaderValueCollection <NameValueHeaderValue>, bool> predicate)
 => @this.AssertHeaderMatches("Pragma", headers => headers.Pragma, predicate);
Пример #21
0
 public static IResponse Vary(this IHas @this, Func <HttpHeaderValueCollection <string>, bool> predicate)
 => @this.AssertHeaderMatches("Vary", headers => headers.Vary, predicate);
Пример #22
0
 public static IResponse Location(this IHas @this, Func <Uri, bool> predicate)
 => @this.AssertHeaderMatches("Location", headers => headers.Location, predicate);
Пример #23
0
 public static IResponse TransferEncoding(this IHas @this, Func <HttpHeaderValueCollection <TransferCodingHeaderValue>, bool> predicate)
 => @this.AssertHeaderMatches("Transfer-Encoding", headers => headers.TransferEncoding, predicate);
Пример #24
0
 public static IResponse ETag(this IHas @this, Func <EntityTagHeaderValue, bool> predicate)
 => @this.AssertHeaderMatches("ETag", headers => headers.ETag, predicate);
Пример #25
0
 public static IResponse Server(this IHas @this, Func <HttpHeaderValueCollection <ProductInfoHeaderValue>, bool> predicate)
 => @this.AssertHeaderMatches("Server", headers => headers.Server, predicate);
Пример #26
0
 public static IResponse LastModified(this IHas @this, Func <DateTimeOffset?, bool> predicate)
 => @this.AssertHeaderMatches("Last-Modified", headers => headers.LastModified, predicate);