Table of Contents

Class RateLimit

Namespace
Auth0.Core.Exceptions
Assembly
Auth0.Core.dll

Represents information about the rate limit for API calls.

public class RateLimit
Inheritance
RateLimit
Inherited Members

Properties

Limit

The maximum number of requests the consumer is allowed to make.

public long Limit { get; }

Property Value

long

Remaining

The number of requests remaining in the current rate limit window.

public long Remaining { get; }

Property Value

long

Reset

The date and time offset at which the current rate limit window is reset.

public DateTimeOffset? Reset { get; }

Property Value

DateTimeOffset?

Methods

Parse(HttpHeaders)

Parse the rate limit headers into a RateLimit object.

public static RateLimit Parse(HttpHeaders headers)

Parameters

headers HttpHeaders

HttpHeaders to parse.

Returns

RateLimit

Instance of RateLimit containing parsed rate limit headers.