| 程序包 | 说明 |
|---|---|
| org.tio.http.common | |
| org.tio.http.common.handler | |
| org.tio.http.common.utils | |
| org.tio.http.server | |
| org.tio.websocket.server |
| 限定符和类型 | 字段和说明 |
|---|---|
HttpConfig |
HttpRequest.httpConfig |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpConfig |
HttpRequest.getHttpConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Cookie |
Cookie.buildCookie(Map<String,String> cookieMap,
HttpConfig httpConfig)
通过 Map 构建一个 Cookie 对象
|
static HttpRequest |
HttpRequestDecoder.decode(ByteBuffer buffer,
int limit,
int position,
int readableLength,
ChannelContext channelContext,
HttpConfig httpConfig) |
static void |
HttpMultiBodyDecoder.decode(HttpRequest request,
RequestLine firstLine,
byte[] bodyBytes,
String initboundary,
ChannelContext channelContext,
HttpConfig httpConfig) |
static HttpMultiBodyDecoder.Step |
HttpMultiBodyDecoder.parseBody(HttpMultiBodyDecoder.Header header,
HttpRequest request,
ByteBuffer buffer,
String boundary,
String endBoundary,
ChannelContext channelContext,
HttpConfig httpConfig) |
static boolean |
HttpRequestDecoder.parseHeaderLine(ByteBuffer buffer,
Map<String,String> headers,
int hasReceivedHeaderLength,
HttpConfig httpConfig)
解析请求头的每一行
|
static RequestLine |
HttpRequestDecoder.parseRequestLine(ByteBuffer buffer,
HttpConfig httpConfig)
parse request line(the first line)
|
void |
HttpRequest.setHttpConfig(HttpConfig httpConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
default HttpConfig |
HttpRequestHandler.getHttpConfig(HttpRequest request)
获取 HttpConfig
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
IpUtils.getRealIp(ChannelContext channelContext,
HttpConfig httpConfig,
Map<String,String> httpHeaders)
获取真实ip
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected HttpConfig |
HttpTioServerHandler.httpConfig |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpConfig |
HttpServerStarter.getHttpConfig() |
HttpConfig |
HttpTioServerHandler.getHttpConfig() |
| 构造器和说明 |
|---|
HttpServerStarter(HttpConfig httpConfig,
HttpRequestHandler requestHandler) |
HttpServerStarter(HttpConfig httpConfig,
HttpRequestHandler requestHandler,
org.tio.utils.thread.pool.SynThreadPoolExecutor tioExecutor,
ExecutorService groupExecutor) |
HttpTioServerHandler(HttpConfig httpConfig,
HttpRequestHandler requestHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpConfig |
WsTioServerHandler.getHttpConfig() |
HttpConfig |
WsServerStarter.getWsServerConfig() |
| 构造器和说明 |
|---|
WsServerStarter(HttpConfig wsServerConfig,
IWsMsgHandler wsMsgHandler) |
WsServerStarter(HttpConfig wsServerConfig,
IWsMsgHandler wsMsgHandler,
org.tio.utils.thread.pool.SynThreadPoolExecutor tioExecutor,
ThreadPoolExecutor groupExecutor) |
WsServerStarter(HttpConfig wsServerConfig,
IWsMsgHandler wsMsgHandler,
TioUuid tioUuid,
org.tio.utils.thread.pool.SynThreadPoolExecutor tioExecutor,
ThreadPoolExecutor groupExecutor) |
WsTioServerHandler(HttpConfig wsServerConfig,
IWsMsgHandler wsMsgHandler) |
Copyright © 2024. All rights reserved.