Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpResponse.copyFrom(HttpResponse response) |
HttpResponse |
HttpResponse.copyFrom(HttpResponse response,
boolean useForSend) |
HttpResponse |
WebServerHandler.disposeHttp(IoSession session,
HttpRequest httpRequest,
HttpResponse httpResponse)
Http 请求响应处理
|
HttpResponse |
WebServerHandler.disposeUpgrade(IoSession session,
HttpRequest httpRequest,
HttpResponse httpResponse) |
HttpResponse |
HttpResponse.getAsyncResponse() |
HttpResponse |
HttpSessionState.getHttpResponse() |
Modifier and Type | Method and Description |
---|---|
void |
HttpSession.attach(HttpRequest request,
HttpResponse response)
绑定当前 Session 到一个 http 请求响应对
|
HttpResponse |
HttpResponse.copyFrom(HttpResponse response) |
HttpResponse |
HttpResponse.copyFrom(HttpResponse response,
boolean useForSend) |
Object |
HttpDispatcher.disposeFilter(Chain<HttpFilterConfig> filterConfigs,
HttpRequest request,
HttpResponse response)
//正向处理过滤器
|
HttpResponse |
WebServerHandler.disposeHttp(IoSession session,
HttpRequest httpRequest,
HttpResponse httpResponse)
Http 请求响应处理
|
Object |
HttpDispatcher.disposeInvertedFilter(Chain<HttpFilterConfig> filterConfigs,
HttpRequest request,
HttpResponse response)
反向处理过滤器
|
void |
HttpDispatcher.disposeRoute(HttpRequest request,
HttpResponse response)
Http 路由处理函数
|
HttpResponse |
WebServerHandler.disposeUpgrade(IoSession session,
HttpRequest httpRequest,
HttpResponse httpResponse) |
void |
HttpDispatcher.exceptionMessage(HttpRequest request,
HttpResponse response,
Exception e)
异常消息处理
|
Object |
HttpFilter.onRequest(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult)
请求过滤器,在请求之前
如果任何一个过滤器返回的是null, 则他后面的过滤器和路由都不会被执行
如果最后一个过滤器如果返回 null, 则不会进行路由处理
整个过滤器执行完成后,返回response.
|
Object |
HttpFilter.onResponse(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult)
响应过滤器,在响应之后
路由处理器处理完成,且返回给浏览器之前
|
void |
HttpRouter.process(HttpRequest request,
HttpResponse response) |
void |
HttpDispatcher.process(HttpRequest request,
HttpResponse response)
Http 请求响应处理函数,入口函数
|
void |
HttpSessionState.setHttpResponse(HttpResponse httpResponse) |
boolean |
HttpDispatcher.tryIndex(HttpRequest request,
HttpResponse response)
尝试用定义首页索引文件的名称
|
Modifier and Type | Method and Description |
---|---|
static void |
WebContext.writeAccessLog(WebServerConfig webServerConfig,
HttpRequest request,
HttpResponse response)
写入access.log
|
Modifier and Type | Method and Description |
---|---|
boolean |
RateLimiterFilter.dealLimiter(RateLimiterFilter.Limiter limiter,
HttpResponse httpResponse) |
Object |
UrlLimitIpFilter.onRequest(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
CrossOriginFilter.onRequest(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
RateLimiterFilter.onRequest(HttpFilterConfig httpFilterConfig,
HttpRequest httpRequest,
HttpResponse httpResponse,
Object o) |
Object |
UrlLimitIpFilter.onResponse(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
CrossOriginFilter.onResponse(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
RateLimiterFilter.onResponse(HttpFilterConfig httpFilterConfig,
HttpRequest httpRequest,
HttpResponse httpResponse,
Object o) |
Modifier and Type | Method and Description |
---|---|
Object |
AnnotationRouterFilter.afterInvoke(HttpRequest request,
HttpResponse response,
AnnotationRouter router,
Object result)
注解路由后置拦截方法
|
Object |
AnnotationRouterFilter.beforeInvoke(HttpRequest request,
HttpResponse response,
AnnotationRouter router)
注解路由前置拦截方法
|
Object |
AnnotationRouterFilter.exception(HttpRequest request,
HttpResponse response,
AnnotationRouter router,
Exception e)
注解路由异常拦截方法
|
Object |
AnnotationRouter.invokeRouterMethod(HttpRequest request,
HttpResponse response,
Class clazz,
Method method)
将一个 Http 请求映射到一个类的方法调用
|
void |
AnnotationRouter.process(HttpRequest request,
HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
Object |
HttpMonitorFilter.onRequest(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
HttpMonitorFilter.onResponse(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
void |
MonitorRouter.process(HttpRequest request,
HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
MimeFileRouter.fillMimeFile(File responseFile,
HttpRequest request,
HttpResponse response)
填充 mime 文件到 response
|
boolean |
MimeFileRouter.isNotModify(File responseFile,
HttpRequest request,
HttpResponse response)
判断是否是304 not modify
|
void |
MimeFileRouter.process(HttpRequest request,
HttpResponse response) |
void |
OptionsRouter.process(HttpRequest request,
HttpResponse response) |
void |
MimeFileRouter.setNotModifyResponse(HttpResponse response)
将响应报文设置称304
|
Copyright © 2020 Voovan. All rights reserved.