public class EagerResponseBodyPart extends HttpResponseBodyPart
Constructor and Description |
---|
EagerResponseBodyPart(io.netty.buffer.ByteBuf buf,
boolean last) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getBodyByteBuffer() |
byte[] |
getBodyPartBytes()
Return the response body's part bytes received.
|
int |
length() |
isLast
public EagerResponseBodyPart(io.netty.buffer.ByteBuf buf, boolean last)
public byte[] getBodyPartBytes()
getBodyPartBytes
in class HttpResponseBodyPart
public int length()
length
in class HttpResponseBodyPart
public java.nio.ByteBuffer getBodyByteBuffer()
getBodyByteBuffer
in class HttpResponseBodyPart
ByteBuffer
that wraps the actual bytes read from the response's chunk.
The ByteBuffer
's capacity is equal to the number of bytes available.Copyright © 2017. All Rights Reserved.