Package | Description |
---|---|
org.tio.http.common.session.limiter |
Modifier and Type | Method and Description |
---|---|
static SessionRateVo |
SessionRateVo.create(String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
SessionRateLimiter.allow(HttpRequest request,
SessionRateVo sessionRateVo)
是否允许访问,true:允许访问,false:不允许访问
|
HttpResponse |
SessionRateLimiter.response(HttpRequest request,
SessionRateVo sessionRateVo)
当被限流后,返回给用户的HttpResponse
如果返回null,则会断开连接
|
Copyright © 2021. All rights reserved.