Package akka.http.javadsl.model
Class HttpEntities
- java.lang.Object
-
- akka.http.javadsl.model.HttpEntities
-
public final class HttpEntities extends java.lang.Object
Constructors for HttpEntity instances
-
-
Field Summary
Fields Modifier and Type Field Description static HttpEntity.Strict
EMPTY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpEntity.Strict
create(byte[] bytes)
static HttpEntity.Strict
create(ContentType.NonBinary contentType, java.lang.String string)
static HttpEntity.Strict
create(ContentType contentType, byte[] bytes)
static HttpEntity.Default
create(ContentType contentType, long contentLength, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
static HttpEntity.Chunked
create(ContentType contentType, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
static HttpEntity.Strict
create(ContentType contentType, akka.util.ByteString bytes)
static UniversalEntity
create(ContentType contentType, java.io.File file)
static UniversalEntity
create(ContentType contentType, java.io.File file, int chunkSize)
static UniversalEntity
create(ContentType contentType, java.nio.file.Path file)
static UniversalEntity
create(ContentType contentType, java.nio.file.Path file, int chunkSize)
static HttpEntity.Strict
create(akka.util.ByteString bytes)
static HttpEntity.Strict
create(java.lang.String string)
static HttpEntity.Chunked
createChunked(ContentType contentType, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
static HttpEntity.CloseDelimited
createCloseDelimited(ContentType contentType, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
static HttpEntity.IndefiniteLength
createIndefiniteLength(ContentType contentType, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
-
-
-
Field Detail
-
EMPTY
public static final HttpEntity.Strict EMPTY
-
-
Method Detail
-
create
public static HttpEntity.Strict create(java.lang.String string)
-
create
public static HttpEntity.Strict create(byte[] bytes)
-
create
public static HttpEntity.Strict create(akka.util.ByteString bytes)
-
create
public static HttpEntity.Strict create(ContentType.NonBinary contentType, java.lang.String string)
-
create
public static HttpEntity.Strict create(ContentType contentType, byte[] bytes)
-
create
public static HttpEntity.Strict create(ContentType contentType, akka.util.ByteString bytes)
-
create
public static UniversalEntity create(ContentType contentType, java.io.File file)
-
create
public static UniversalEntity create(ContentType contentType, java.nio.file.Path file)
-
create
public static UniversalEntity create(ContentType contentType, java.io.File file, int chunkSize)
-
create
public static UniversalEntity create(ContentType contentType, java.nio.file.Path file, int chunkSize)
-
create
public static HttpEntity.Default create(ContentType contentType, long contentLength, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
-
create
public static HttpEntity.Chunked create(ContentType contentType, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
-
createCloseDelimited
public static HttpEntity.CloseDelimited createCloseDelimited(ContentType contentType, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
-
createIndefiniteLength
public static HttpEntity.IndefiniteLength createIndefiniteLength(ContentType contentType, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
-
createChunked
public static HttpEntity.Chunked createChunked(ContentType contentType, akka.stream.javadsl.Source<akka.util.ByteString,?> data)
-
-