Package | Description |
---|---|
org.voovan.http.message | |
org.voovan.network |
Modifier and Type | Method and Description |
---|---|
static Object[] |
HttpParser.parser(IoSession session,
Object[] packetMap,
int type,
ByteBufferChannel byteBufferChannel,
int timeout,
long requestMaxSize)
解析 HTTP 报文
解析称 Map 形式,其中:
1.protocol 解析成 key/value 形式
2.header 解析成 key/value 形式
3.cookie 解析成 List[Map[String,String]] 形式
3.part 解析成 List[Map[Stirng,Object]](因为是递归,参考 HTTP 解析形式) 形式
5.body 解析成 key=BODY_VALUE 的Map 元素
|
static Request |
HttpParser.parseRequest(IoSession session,
ByteBufferChannel byteBufferChannel,
int timeOut,
long requestMaxSize)
解析报文成 HttpRequest 对象
|
static Request |
HttpParser.parseRequest(Request request,
IoSession session,
ByteBufferChannel byteBufferChannel,
int timeOut,
long requestMaxSize)
解析报文成 HttpRequest 对象
|
static Response |
HttpParser.parseResponse(IoSession session,
ByteBufferChannel byteBufferChannel,
int timeOut)
解析报文成 HttpResponse 对象
|
static Response |
HttpParser.parseResponse(Response response,
IoSession session,
ByteBufferChannel byteBufferChannel,
int timeOut)
解析报文成 HttpResponse 对象
|
Modifier and Type | Field and Description |
---|---|
protected ByteBufferChannel |
IoSession.readByteBufferChannel |
protected ByteBufferChannel |
IoSession.sendByteBufferChannel |
Modifier and Type | Method and Description |
---|---|
ByteBufferChannel |
IoSession.getReadByteBufferChannel()
获取读取缓冲区
|
ByteBufferChannel |
IoSession.getSendByteBufferChannel()
获取发送缓冲区
|
ByteBufferChannel |
SSLParser.getSSlByteBufferChannel() |
Copyright © 2020 Voovan. All rights reserved.