Class AsyncHttpClientRequestBodyGenerator

java.lang.Object
ru.tinkoff.kora.http.client.async.AsyncHttpClientRequestBodyGenerator
All Implemented Interfaces:
org.asynchttpclient.request.body.generator.BodyGenerator, org.asynchttpclient.request.body.generator.FeedableBodyGenerator

public class AsyncHttpClientRequestBodyGenerator extends Object implements org.asynchttpclient.request.body.generator.FeedableBodyGenerator
  • Constructor Details

    • AsyncHttpClientRequestBodyGenerator

      public AsyncHttpClientRequestBodyGenerator(ru.tinkoff.kora.http.common.body.HttpBodyOutput body)
  • Method Details

    • feed

      public boolean feed(io.netty.buffer.ByteBuf buffer, boolean isLast) throws Exception
      Specified by:
      feed in interface org.asynchttpclient.request.body.generator.FeedableBodyGenerator
      Throws:
      Exception
    • setListener

      public void setListener(org.asynchttpclient.request.body.generator.FeedListener listener)
      Specified by:
      setListener in interface org.asynchttpclient.request.body.generator.FeedableBodyGenerator
    • createBody

      public org.asynchttpclient.request.body.Body createBody()
      Specified by:
      createBody in interface org.asynchttpclient.request.body.generator.BodyGenerator