Class AsyncRequestContent

java.lang.Object
org.eclipse.jetty.io.content.AsyncContent
org.eclipse.jetty.client.AsyncRequestContent
All Implemented Interfaces:
Closeable, AutoCloseable, Request.Content, Content.Sink, Content.Source

public class AsyncRequestContent extends AsyncContent implements Request.Content
  • Constructor Details

    • AsyncRequestContent

      public AsyncRequestContent(ByteBuffer... buffers)
    • AsyncRequestContent

      public AsyncRequestContent(String contentType, ByteBuffer... buffers)
  • Method Details

    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface Request.Content
      Returns:
      the content type string such as "application/octet-stream" or "application/json;charset=UTF8", or null if the Content-Type header must not be set
    • write

      public void write(ByteBuffer buffer, Callback callback)