Response headers#
The following headers may be added to the response from a service protected by Gafaelfawr.
They will only be added for services behind an authenticated GafaelfawrIngress resource, not an anonymous one.
Rate limit headers#
Retry-AfterOnly sent on 429 responses once the rate limit has been exceeded. Specifies the time at which the rate limit will reset and the user will be able to make requests again. The value is an HTTP date.
X-RateLimit-LimitThis request is subject to a rate limit. The value of this header is the total number of requests permitted in each time window, which currently is always fifteen minutes. See
X-RateLimit-Remainingfor the number of requests left in that interval.X-RateLimit-RemainingThe number of requests to this service remaining in the user’s quota. The quota will reset at the time given by
X-RateLimit-Reset.X-RateLimit-ResetThe time at which the rate limit quota will reset, in seconds since epoch. At this time, the number of requests seen will be reset to zero, and the user will receive another full allotment of their quota.
X-RateLimit-ResourceThe name of the resource being rate-limited. This will match the
servicesetting of theGafaelfawrIngressKubernetes resource. Clients can use this header to understand what requests are subject to a given quota.X-RateLimit-UsedThe number of requests to this resource seen within the rate limit period. This will be
X-RateLimit-LimitminusX-RateLimit-Remaining.
The X-RateLimit headers are sent for successful responses, error responses from the underlying service, and 429 responses.
The Retry-After header is only sent as part of a 429 response.