Class AsyncClientPipeline.RequestContentStage
java.lang.Object
org.apache.hc.core5.http.nio.support.AsyncClientPipeline.RequestContentStage
- Enclosing class:
AsyncClientPipeline
Request content stage.
- Since:
- 5.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasByteArray(byte[] bytes, ContentType contentType) Configures the pipeline to represent the outgoing message content as a byte array.asString(String s, ContentType contentType) Configures the pipeline to represent the outgoing message content as a String.Configures the pipeline to represent the outgoing message without a content body.produceContent(AsyncEntityProducer dataProducer) ConfiguresAsyncEntityProducerto be used by the pipeline to generate the outgoing request content stream.
-
Field Details
-
request
-
-
Constructor Details
-
RequestContentStage
-
-
Method Details
-
produceContent
ConfiguresAsyncEntityProducerto be used by the pipeline to generate the outgoing request content stream. -
asString
Configures the pipeline to represent the outgoing message content as a String. -
asByteArray
Configures the pipeline to represent the outgoing message content as a byte array. -
noContent
Configures the pipeline to represent the outgoing message without a content body.
-