public class BodyDecoderEncoder extends Object
Constructor and Description |
---|
BodyDecoderEncoder() |
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
bodyToByteBuf(Body body,
String contentTypeHeader) |
io.netty.buffer.ByteBuf[] |
bodyToByteBuf(Body body,
String contentTypeHeader,
int chunkSize) |
BodyWithContentType |
byteBufToBody(io.netty.buffer.ByteBuf content,
String contentTypeHeader) |
BodyWithContentType |
bytesToBody(byte[] bodyBytes,
String contentTypeHeader) |
static byte[][] |
split(byte[] array,
int chunkSize) |
public io.netty.buffer.ByteBuf[] bodyToByteBuf(Body body, String contentTypeHeader, int chunkSize)
public static byte[][] split(byte[] array, int chunkSize)
public BodyWithContentType byteBufToBody(io.netty.buffer.ByteBuf content, String contentTypeHeader)
public BodyWithContentType bytesToBody(byte[] bodyBytes, String contentTypeHeader)
Copyright © 2022. All rights reserved.