public class HttpResponseEncoder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpResponseEncoder.Step |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_HEADER_LENGTH |
| Constructor and Description |
|---|
HttpResponseEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
encode(HttpResponse httpResponse,
org.tio.core.GroupContext groupContext,
org.tio.core.ChannelContext channelContext,
boolean skipCookie) |
static void |
main(String[] args) |
static KeyValue |
parseHeaderLine(String line)
解析请求头的每一行
|
public static final int MAX_HEADER_LENGTH
public static ByteBuffer encode(HttpResponse httpResponse, org.tio.core.GroupContext groupContext, org.tio.core.ChannelContext channelContext, boolean skipCookie)
httpResponse - groupContext - channelContext - skipCookie - true: 忽略掉cookie部分的编码public static void main(String[] args)
args - Copyright © 2018. All rights reserved.