Class HttpEntities
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpEntities
Constructors for HttpEntity instances
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpEntity.Strictcreate(byte[] bytes) static HttpEntity.Strictstatic HttpEntity.Strictcreate(ContentType.NonBinary contentType, String string) static HttpEntity.Strictcreate(ContentType contentType, byte[] bytes) static HttpEntity.Defaultcreate(ContentType contentType, long contentLength, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data) static UniversalEntitycreate(ContentType contentType, File file) static UniversalEntitycreate(ContentType contentType, File file, int chunkSize) static UniversalEntitycreate(ContentType contentType, Path file) static UniversalEntitycreate(ContentType contentType, Path file, int chunkSize) static HttpEntity.Chunkedcreate(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data) static HttpEntity.Strictcreate(ContentType contentType, org.apache.pekko.util.ByteString bytes) static HttpEntity.Strictcreate(org.apache.pekko.util.ByteString bytes) static HttpEntity.ChunkedcreateChunked(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data) static HttpEntity.CloseDelimitedcreateCloseDelimited(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data) static HttpEntity.IndefiniteLengthcreateIndefiniteLength(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data)
-
Field Details
-
EMPTY
-
-
Method Details
-
create
-
create
-
create
-
create
-
create
-
create
public static HttpEntity.Strict create(ContentType contentType, org.apache.pekko.util.ByteString bytes) -
create
-
create
-
create
-
create
-
create
public static HttpEntity.Default create(ContentType contentType, long contentLength, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data) -
create
public static HttpEntity.Chunked create(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data) -
createCloseDelimited
public static HttpEntity.CloseDelimited createCloseDelimited(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data) -
createIndefiniteLength
public static HttpEntity.IndefiniteLength createIndefiniteLength(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data) -
createChunked
public static HttpEntity.Chunked createChunked(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString, ?> data)
-