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