public class LazyResponseBodyPart extends HttpResponseBodyPart
Constructor and Description |
---|
LazyResponseBodyPart(io.netty.buffer.ByteBuf buf,
boolean last) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getBodyByteBuffer() |
byte[] |
getBodyPartBytes()
Return the response body's part bytes received.
|
io.netty.buffer.ByteBuf |
getBuf() |
int |
length() |
isLast
public LazyResponseBodyPart(io.netty.buffer.ByteBuf buf, boolean last)
public io.netty.buffer.ByteBuf getBuf()
public int length()
length
in class HttpResponseBodyPart
public byte[] getBodyPartBytes()
getBodyPartBytes
in class HttpResponseBodyPart
public 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 © 2019. All rights reserved.