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
ConstructorsConstructorDescriptionAsyncRequestContent
(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 value of the
Content-Type
header for the request content, such astext/html;charset=utf-8
orapplication/json
, ornull
to use the value fromHttpClient.getDefaultRequestContentType()
-
write
-