Modifier and Type | Method and Description |
---|---|
org.voovan.http.server.RouterWrap<HttpRouter> |
HttpDispatcher.findRouter(HttpRequest request)
获取路由处理对象和注册路由
|
Map<String,Map<String,org.voovan.http.server.RouterWrap<HttpRouter>>> |
WebServer.getHttpRouters()
获取 Http 的路由配置
|
Map<String,Map<String,org.voovan.http.server.RouterWrap<HttpRouter>>> |
HttpDispatcher.getRoutes()
获取 Http 的路由配置
|
Modifier and Type | Method and Description |
---|---|
void |
HttpDispatcher.addRouter(String method,
String routePath,
HttpRouter router)
增加一个路由规则
|
void |
HttpModule.connect(String routeRegexPath,
HttpRouter router)
CONNECT 请求
|
WebServer |
WebServer.connect(String routeRegexPath,
HttpRouter router)
CONNECT 请求
|
void |
HttpModule.delete(String routeRegexPath,
HttpRouter router)
DELETE 请求
|
WebServer |
WebServer.delete(String routeRegexPath,
HttpRouter router)
DELETE 请求
|
void |
HttpModule.get(String routeRegexPath,
HttpRouter router)
GET 请求
|
WebServer |
WebServer.get(String routeRegexPath,
HttpRouter router)
GET 请求
|
WebServer |
WebServer.getAndPost(String routeRegexPath,
HttpRouter router)
同时注册 GET 和 POST 请求
|
void |
HttpModule.head(String routeRegexPath,
HttpRouter router)
HEAD 请求
|
WebServer |
WebServer.head(String routeRegexPath,
HttpRouter router)
HEAD 请求
|
void |
HttpModule.options(String routeRegexPath,
HttpRouter router)
OPTIONS 请求
|
WebServer |
WebServer.options(String routeRegexPath,
HttpRouter router)
OPTIONS 请求
|
void |
HttpModule.otherMethod(String method,
String routeRegexPath,
HttpRouter router)
其他请求
|
WebServer |
WebServer.otherMethod(String method,
String routeRegexPath,
HttpRouter router)
其他请求
|
void |
HttpModule.post(String routeRegexPath,
HttpRouter router)
POST 请求
|
WebServer |
WebServer.post(String routeRegexPath,
HttpRouter router)
POST 请求
|
void |
HttpModule.put(String routeRegexPath,
HttpRouter router)
PUT 请求
|
WebServer |
WebServer.put(String routeRegexPath,
HttpRouter router)
PUT 请求
|
void |
HttpModule.trace(String routeRegexPath,
HttpRouter router)
TRACE 请求
|
WebServer |
WebServer.trace(String routeRegexPath,
HttpRouter router)
TRACE 请求
|
Modifier and Type | Method and Description |
---|---|
HttpRouter |
HttpRouterConfig.getHttpRouterInstance()
获取HttpRouter路由处理实例
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationRouter
通过注解实现的路由
|
Modifier and Type | Class and Description |
---|---|
class |
MonitorRouter
监控业务处理类
|
Modifier and Type | Class and Description |
---|---|
class |
MimeFileRouter
MIME 文件路由处理类
|
class |
OptionsRouter
用类处理自定义 header 以及跨域的处理
自定义的 header 会先用 Options 探测是否支持自定义的 headers
|
Copyright © 2020 Voovan. All rights reserved.