public static interface RateLimits.Parser
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEADER_HOUR_LIMIT |
static java.lang.String |
HEADER_HOUR_REMAINING |
static java.lang.String |
HEADER_RESET |
static java.lang.String |
HEADER_SECOND_LIMIT |
static java.lang.String |
HEADER_SECOND_REMAINING |
Modifier and Type | Method and Description |
---|---|
RateLimits |
parse(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
Convert Contentfuls http headers to ratelimits
|
static final java.lang.String HEADER_HOUR_LIMIT
static final java.lang.String HEADER_HOUR_REMAINING
static final java.lang.String HEADER_SECOND_LIMIT
static final java.lang.String HEADER_SECOND_REMAINING
static final java.lang.String HEADER_RESET
RateLimits parse(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
headers
- the header of an http request to be parsedCopyright © 2019 Contentful, GmbH.. All Rights Reserved.