Class NettyBodyBody
- java.lang.Object
-
- org.asynchttpclient.netty.request.body.NettyBodyBody
-
- All Implemented Interfaces:
NettyBody
- Direct Known Subclasses:
NettyMultipartBody
public class NettyBodyBody extends Object implements NettyBody
-
-
Constructor Summary
Constructors Constructor Description NettyBodyBody(Body body, AsyncHttpClientConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BodygetBody()longgetContentLength()voidwrite(io.netty.channel.Channel channel, NettyResponseFuture<?> future)voidwriteHttp2(io.netty.handler.codec.http2.Http2StreamChannel channel, NettyResponseFuture<?> future)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.asynchttpclient.netty.request.body.NettyBody
getContentTypeOverride
-
-
-
-
Constructor Detail
-
NettyBodyBody
public NettyBodyBody(Body body, AsyncHttpClientConfig config)
-
-
Method Detail
-
getBody
public Body getBody()
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceNettyBody
-
write
public void write(io.netty.channel.Channel channel, NettyResponseFuture<?> future)
-
writeHttp2
public void writeHttp2(io.netty.handler.codec.http2.Http2StreamChannel channel, NettyResponseFuture<?> future) throws IOException- Specified by:
writeHttp2in interfaceNettyBody- Throws:
IOException
-
-