Enum Constant and Description |
---|
Deflate |
DeflateLevel1 |
DeflateLevel9 |
Gzip |
GzipLevel1 |
GzipLevel9 |
NoCoding |
Modifier and Type | Method and Description |
---|---|
Coder |
_underlyingScalaCoder() |
java.util.concurrent.CompletionStage<org.apache.pekko.util.ByteString> |
decode(org.apache.pekko.util.ByteString input,
org.apache.pekko.stream.Materializer mat) |
HttpRequest |
decodeMessage(HttpRequest message) |
HttpResponse |
decodeMessage(HttpResponse message) |
org.apache.pekko.util.ByteString |
encode(org.apache.pekko.util.ByteString input)
Deprecated.
Synchronous encoding is deprecated since Akka HTTP 10.2.0
|
HttpRequest |
encodeMessage(HttpRequest message) |
HttpResponse |
encodeMessage(HttpResponse message) |
static Coder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Coder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Coder NoCoding
public static final Coder Deflate
public static final Coder Gzip
public static final Coder DeflateLevel1
public static final Coder DeflateLevel9
public static final Coder GzipLevel1
public static final Coder GzipLevel9
public static Coder[] values()
for (Coder c : Coder.values()) System.out.println(c);
public static Coder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic HttpResponse encodeMessage(HttpResponse message)
public HttpRequest encodeMessage(HttpRequest message)
@Deprecated public org.apache.pekko.util.ByteString encode(org.apache.pekko.util.ByteString input)
public HttpResponse decodeMessage(HttpResponse message)
public HttpRequest decodeMessage(HttpRequest message)
public java.util.concurrent.CompletionStage<org.apache.pekko.util.ByteString> decode(org.apache.pekko.util.ByteString input, org.apache.pekko.stream.Materializer mat)
public Coder _underlyingScalaCoder()