Package org.eclipse.jetty.client
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
-
Constructor Summary
ConstructorDescriptionAsyncRequestContent
(String contentType, ByteBuffer... buffers) AsyncRequestContent
(ByteBuffer... buffers) -
Method Summary
Methods inherited from class org.eclipse.jetty.io.content.AsyncContent
close, count, demand, fail, fail, flush, getLength, isClosed, read, write
-
Constructor Details
-
AsyncRequestContent
-
AsyncRequestContent
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfaceRequest.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
-