Table of Contents

Class RateLimitMappings

Namespace
Fluxer.Net.RateLimiting
Assembly
Fluxer.Net.dll

Maps API routes to their corresponding rate limit configurations. This provides a centralized reference for rate limit buckets across the API.

Usage example in ApiClient methods:

public async Task<Channel> GetChannel(ulong channelId)
{
    await WaitForRateLimit(RateLimitConfigs.CHANNEL_GET, channelId: channelId);
    return await MakeFluxerApiRequestR<Channel>(HttpMethod.Get, $"/channels/{channelId}", true);
}
public static class RateLimitMappings
Inheritance
object
RateLimitMappings

Fields

RouteToConfig

Dictionary mapping route patterns to their rate limit configurations. Key format: "METHOD /route/pattern"

public static readonly Dictionary<string, RateLimitConfig> RouteToConfig

Field Value

Dictionary<string, RateLimitConfig>