public final class HttpEntities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static HttpEntity.Strict |
EMPTY |
Modifier and Type | Method and Description |
---|---|
static HttpEntity.Strict |
create(byte[] bytes) |
static HttpEntity.Strict |
create(org.apache.pekko.util.ByteString bytes) |
static HttpEntity.Strict |
create(ContentType.NonBinary contentType,
java.lang.String string) |
static HttpEntity.Strict |
create(ContentType contentType,
byte[] bytes) |
static HttpEntity.Strict |
create(ContentType contentType,
org.apache.pekko.util.ByteString bytes) |
static UniversalEntity |
create(ContentType contentType,
java.io.File file) |
static UniversalEntity |
create(ContentType contentType,
java.io.File file,
int chunkSize) |
static HttpEntity.Default |
create(ContentType contentType,
long contentLength,
org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data) |
static UniversalEntity |
create(ContentType contentType,
java.nio.file.Path file) |
static UniversalEntity |
create(ContentType contentType,
java.nio.file.Path file,
int chunkSize) |
static HttpEntity.Chunked |
create(ContentType contentType,
org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data) |
static HttpEntity.Strict |
create(java.lang.String string) |
static HttpEntity.Chunked |
createChunked(ContentType contentType,
org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data) |
static HttpEntity.CloseDelimited |
createCloseDelimited(ContentType contentType,
org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data) |
static HttpEntity.IndefiniteLength |
createIndefiniteLength(ContentType contentType,
org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data) |
public static final HttpEntity.Strict EMPTY
public static HttpEntity.Strict create(java.lang.String string)
public static HttpEntity.Strict create(byte[] bytes)
public static HttpEntity.Strict create(org.apache.pekko.util.ByteString bytes)
public static HttpEntity.Strict create(ContentType.NonBinary contentType, java.lang.String string)
public static HttpEntity.Strict create(ContentType contentType, byte[] bytes)
public static HttpEntity.Strict create(ContentType contentType, org.apache.pekko.util.ByteString bytes)
public static UniversalEntity create(ContentType contentType, java.io.File file)
public static UniversalEntity create(ContentType contentType, java.nio.file.Path file)
public static UniversalEntity create(ContentType contentType, java.io.File file, int chunkSize)
public static UniversalEntity create(ContentType contentType, java.nio.file.Path file, int chunkSize)
public static HttpEntity.Default create(ContentType contentType, long contentLength, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data)
public static HttpEntity.Chunked create(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data)
public static HttpEntity.CloseDelimited createCloseDelimited(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data)
public static HttpEntity.IndefiniteLength createIndefiniteLength(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data)
public static HttpEntity.Chunked createChunked(ContentType contentType, org.apache.pekko.stream.javadsl.Source<org.apache.pekko.util.ByteString,?> data)