We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45bf757 commit 2658aceCopy full SHA for 2658ace
src/function/v2.ts
@@ -3,14 +3,12 @@ export type { Context } from '@netlify/serverless-functions-api'
3
type Path = `/${string}`
4
type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
5
type CronSchedule = string
6
-type RateLimitAlgorithm = 'sliding_window'
7
type RateLimitAggregator = 'domain' | 'ip'
8
type RateLimitAction = 'rate_limit' | 'rewrite'
9
10
interface RateLimitConfig {
11
action?: RateLimitAction
12
aggregateBy?: RateLimitAggregator | RateLimitAggregator[]
13
- algorithm?: RateLimitAlgorithm
14
to?: string
15
windowSize: number
16
}
0 commit comments