RateLimit.fromHeaders constructor

RateLimit.fromHeaders(
  1. Map<String, String> headers
)

Creates a RateLimit instance from HTTP headers.

Extracts rate limit related details from the headers and initializes the RateLimit instance.

Implementation

factory RateLimit.fromHeaders(final Map<String, String> headers) =>
    const _RateLimitConverter().fromHeaders(headers);