AdaptativeLimiterOptions.UseHeaderPriorityResolver method (1 of 2)
Sets the HttpHeaderPriorityResolver, it converts the header X-Priority to the request priority (critical, normal, noncritical).
public AdaptativeLimiterOptions UseHeaderPriorityResolver()
Return Value
AdaptativeLimiterOptions
See Also
- class AdaptativeLimiterOptions
- namespace Farfetch.LoadShedding.AspNetCore.Options
AdaptativeLimiterOptions.UseHeaderPriorityResolver method (2 of 2)
Configures the priority resolver based on a specific HTTP header.
public AdaptativeLimiterOptions UseHeaderPriorityResolver(string headerName)
parameter | description |
---|---|
headerName | The name of the HTTP header to be used for determining the priority. |
Return Value
The adaptive limiter configuration options.
See Also
- class AdaptativeLimiterOptions
- namespace Farfetch.LoadShedding.AspNetCore.Options