Adding RateLimit Feature ...
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace xCommons.Constants
|
||||
{
|
||||
/// <summary>
|
||||
/// RateLimit Implementation Constants ...
|
||||
/// </summary>
|
||||
public partial struct XRateLimitConstants
|
||||
{
|
||||
public const string CacheKeyPrefix = "xratelimit";
|
||||
public const string ClientIdHeader = "X-ClientId";
|
||||
public const string RetryAfterHeader = "Retry-After";
|
||||
public const string LimitHeader = "X-RateLimit-Limit";
|
||||
public const string ResetHeader = "X-RateLimit-Reset";
|
||||
public const string AppliedItemKey = "X-RateLimit-Applied";
|
||||
public const string RemainingHeader = "X-RateLimit-Remaining";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user