示例#1
0
 public bool Has(string key)
 {
     return(_request.HasHeader(key));
 }
示例#2
0
 /// <summary>
 /// Is an Http header present in the current request?
 /// </summary>
 /// <param name="request"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public static bool HasHeader(this ICurrentHttpRequest request, HttpRequestHeader key)
 {
     return(request.HasHeader(HttpRequestHeaders.HeaderNameFor(key)));
 }