- java.lang.Object
-
- swim.http.HttpChunk
-
-
Constructor Summary
Constructors Constructor Description HttpChunk(HttpChunkHeader header, Encoder<?,?> content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Encoder<?,?>
content()
static HttpChunk
create(int length, Encoder<?,?> content)
static HttpChunk
create(String text)
static HttpChunk
create(ByteBuffer data)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.Encoder<?,?>
encodeHttp(OutputBuffer<?> output)
Encoder<?,?>
encodeHttp(OutputBuffer<?> output, HttpWriter http)
boolean
equals(Object other)
int
hashCode()
HttpChunkHeader
header()
Encoder<?,?>
httpEncoder()
Encoder<?,?>
httpEncoder(HttpWriter http)
boolean
isEmpty()
static HttpChunk
last()
String
toString()
-
-
-
Constructor Detail
-
HttpChunk
public HttpChunk(HttpChunkHeader header, Encoder<?,?> content)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
header
public HttpChunkHeader header()
-
content
public Encoder<?,?> content()
-
httpEncoder
public Encoder<?,?> httpEncoder(HttpWriter http)
-
httpEncoder
public Encoder<?,?> httpEncoder()
-
encodeHttp
public Encoder<?,?> encodeHttp(OutputBuffer<?> output, HttpWriter http)
-
encodeHttp
public Encoder<?,?> encodeHttp(OutputBuffer<?> output)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
last
public static HttpChunk last()
-
create
public static HttpChunk create(ByteBuffer data)
-
-