public interface Body extends Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
Body.BodyState |
Modifier and Type | Method and Description |
---|---|
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.
|
long getContentLength()
Body.BodyState transferTo(io.netty.buffer.ByteBuf target) throws IOException
target
- The buffer to store the chunk in, must not be null
.IOException
- If the chunk could not be read.Copyright © 2020. All rights reserved.