public void RequestFilter(HttpWebRequest request)
 {
     _parent.RequestFilter(request);
     if (_parent.Options.SupportsSlug && _slug != null && _slug.Length > 0)
     {
         request.Headers.Add("Slug", SlugHeaderValue);
     }
 }
Exemple #2
0
 public Task RequestFilter(HttpRequestMessage request)
 {
     _parent.RequestFilter(request);
     if (_parent.Options.SupportsSlug && _slug != null && _slug.Length > 0)
     {
         request.Headers["Slug"] = SlugHeaderValue;
     }
     return(Task.FromResult(true));
 }