public class HttpMultiBodyDecoder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpMultiBodyDecoder.Header |
static interface |
HttpMultiBodyDecoder.MultiBodyHeaderKey
【
Content-Disposition: form-data; name="uploadFile"; filename=""
Content-Type: application/octet-stream
】
【
Content-Disposition: form-data; name="end"
】
|
static class |
HttpMultiBodyDecoder.Step |
| Constructor and Description |
|---|
HttpMultiBodyDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decode(HttpRequest request,
RequestLine firstLine,
byte[] bodyBytes,
String initboundary,
ChannelContext channelContext,
HttpConfig httpConfig) |
static HttpMultiBodyDecoder.Step |
parseBody(HttpMultiBodyDecoder.Header header,
HttpRequest request,
ByteBuffer buffer,
String boundary,
String endBoundary,
HttpConfig httpConfig) |
static void |
parseHeader(List<String> lines,
HttpMultiBodyDecoder.Header header,
ChannelContext channelContext)
【
Content-Disposition: form-data; name="uploadFile"; filename=""
Content-Type: application/octet-stream
】
【
Content-Disposition: form-data; name="end"
】
|
public static void decode(HttpRequest request, RequestLine firstLine, byte[] bodyBytes, String initboundary, ChannelContext channelContext, HttpConfig httpConfig) throws TioDecodeException
request - HttpRequestfirstLine - RequestLinebodyBytes - bodyBytesinitboundary - initboundarychannelContext - ChannelContexthttpConfig - HttpConfigTioDecodeException - TioDecodeExceptionpublic static HttpMultiBodyDecoder.Step parseBody(HttpMultiBodyDecoder.Header header, HttpRequest request, ByteBuffer buffer, String boundary, String endBoundary, HttpConfig httpConfig) throws LengthOverflowException, TioDecodeException
header - Headerrequest - HttpRequestbuffer - ByteBufferboundary - boundaryendBoundary - endBoundaryhttpConfig - HttpConfigLengthOverflowException - 异常TioDecodeExceptionpublic static void parseHeader(List<String> lines, HttpMultiBodyDecoder.Header header, ChannelContext channelContext) throws TioDecodeException
【 Content-Disposition: form-data; name="end" 】
lines - linesheader - headerchannelContext - ChannelContextTioDecodeException - TioDecodeExceptionCopyright © 2025. All rights reserved.