bunway
Preparing search index...
RateLimitOptions
Interface RateLimitOptions
interface
RateLimitOptions
{
headers
?:
boolean
;
keyGenerator
?:
(
req
:
{
ip
:
string
;
method
:
string
;
path
:
string
}
,
)
=>
string
;
max
?:
number
;
message
?:
string
|
object
;
onLimitReached
?:
(
req
:
{
ip
:
string
;
method
:
string
;
path
:
string
}
,
)
=>
void
;
skip
?:
(
req
:
{
ip
:
string
;
method
:
string
;
path
:
string
}
)
=>
boolean
;
statusCode
?:
number
;
windowMs
?:
number
;
}
Index
Properties
headers?
key
Generator?
max?
message?
on
Limit
Reached?
skip?
status
Code?
window
Ms?
Properties
Optional
headers
headers
?:
boolean
Optional
key
Generator
keyGenerator
?:
(
req
:
{
ip
:
string
;
method
:
string
;
path
:
string
}
)
=>
string
Optional
max
max
?:
number
Optional
message
message
?:
string
|
object
Optional
on
Limit
Reached
onLimitReached
?:
(
req
:
{
ip
:
string
;
method
:
string
;
path
:
string
}
)
=>
void
Optional
skip
skip
?:
(
req
:
{
ip
:
string
;
method
:
string
;
path
:
string
}
)
=>
boolean
Optional
status
Code
statusCode
?:
number
Optional
window
Ms
windowMs
?:
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
headers
key
Generator
max
message
on
Limit
Reached
skip
status
Code
window
Ms
bunway
Loading...