public final class PushBody extends Object implements Body
Body.BodyState| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getContentLength()
Gets the length of the body.
|
Body.BodyState |
transferTo(io.netty.buffer.ByteBuf target)
Reads the next chunk of bytes from the body.
|
public long getContentLength()
BodygetContentLength in interface Bodypublic Body.BodyState transferTo(io.netty.buffer.ByteBuf target)
BodytransferTo in interface Bodytarget - The buffer to store the chunk in, must not be null.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2020. All rights reserved.