Class SimpleRequestProducer
- java.lang.Object
-
- org.apache.hc.core5.http.nio.support.BasicRequestProducer
-
- org.apache.hc.client5.http.async.methods.SimpleRequestProducer
-
- All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataProducer,org.apache.hc.core5.http.nio.AsyncRequestProducer,org.apache.hc.core5.http.nio.ResourceHolder
public final class SimpleRequestProducer extends org.apache.hc.core5.http.nio.support.BasicRequestProducerHTTP request producer that generates message data stream events based on content of aSimpleHttpRequestinstance.IMPORTANT:
SimpleHttpRequests are intended for simple scenarios where entities inclosed in requests are known to be small. It is generally recommended to useAsyncRequestBuilderand streamingAsyncEntityProducers.- Since:
- 5.0
- See Also:
SimpleBody,SimpleHttpRequest,AsyncRequestBuilder,AsyncEntityProducer
-
-
Constructor Summary
Constructors Constructor Description SimpleRequestProducer(SimpleHttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleRequestProducercreate(SimpleHttpRequest request)
-
-
-
Constructor Detail
-
SimpleRequestProducer
SimpleRequestProducer(SimpleHttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer)
-
-
Method Detail
-
create
public static SimpleRequestProducer create(SimpleHttpRequest request)
-
-