public final class BinaryHttpSerializer
extends java.lang.Object
HttpObjects to ByteBuf, implementing
Binary Representation of HTTP Messages.| Constructor and Description |
|---|
BinaryHttpSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(io.netty.handler.codec.http.HttpObject msg,
io.netty.buffer.ByteBuf out)
Serialize binary
HttpObjects into a ByteBuf. |
public void serialize(io.netty.handler.codec.http.HttpObject msg,
io.netty.buffer.ByteBuf out)
HttpObjects into a ByteBuf.
It is important that the given HttpObjects are in a valid sequence like:
1BinaryHttpResponse|BinaryHttpRequest, 0-nHttpContent, 1LastHttpContent.
FullBinaryHttpResponse or FullBinaryHttpRequest can be used as a shortcut for such a valid sequence.msg - the HttpObject to serializeout - the ByteBuf into which to write.Copyright © 2023 The Netty Project. All Rights Reserved.