in src/bucket.ts [61:75]
public headers(
data: Limitus.DropInfo,
): {
[key: string]: string | number;
} {
const headers: {
[key: string]: string | number;
} = { 'X-Rate-Limit': this.options.max };
if (this.mode === 'interval') {
headers['X-RateLimit-Remaining'] = Math.max(this.options.max - data.count, 0).toString();
headers['X-RateLimit-Reset'] = data.bucket;
}
return headers;
}