java.lang.Object
swim.http.HttpPayload<T>
swim.http.HttpChunked<T>
- All Implemented Interfaces:
Debug
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> HttpChunked<T>static <T> HttpChunked<T>static <T> HttpChunked<T>static <T> HttpChunked<T><T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.static <T> Decoder<HttpMessage<T>>decodeHttp(InputBuffer input, HttpMessage<?> message, Decoder<T> payloadDecoder) <T2> Encoder<?,HttpMessage<T2>> encodeHttp(OutputBuffer<?> output, HttpMessage<T2> message, HttpWriter http) booleanstatic <T> HttpChunked<T>static <T> HttpChunked<T>get()inthashCode()headers()static <T> Decoder<HttpMessage<T>>httpDecoder(HttpMessage<?> message, Decoder<T> payloadDecoder) <T2> Encoder<?,HttpMessage<T2>> httpEncoder(HttpMessage<T2> message, HttpWriter http) booleanEncoder<?,?> toString()Methods inherited from class swim.http.HttpPayload
empty, encodeHttp, httpEncoder
-
Method Details
-
isDefined
public boolean isDefined()- Specified by:
isDefinedin classHttpPayload<T>
-
get
- Specified by:
getin classHttpPayload<T>
-
payloadEncoder
-
mediaType
- Specified by:
mediaTypein classHttpPayload<T>
-
transferCodings
- Specified by:
transferCodingsin classHttpPayload<T>
-
headers
- Specified by:
headersin classHttpPayload<T>
-
httpEncoder
- Specified by:
httpEncoderin classHttpPayload<T>
-
encodeHttp
public <T2> Encoder<?,HttpMessage<T2>> encodeHttp(OutputBuffer<?> output, HttpMessage<T2> message, HttpWriter http) - Specified by:
encodeHttpin classHttpPayload<T>
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
toString
-
create
public static <T> HttpChunked<T> create(T payloadValue, Encoder<?, T> payloadEncoder, MediaType mediaType) -
create
-
create
-
create
-
fromFile
- Throws:
IOException
-
fromFile
- Throws:
IOException
-
httpDecoder
public static <T> Decoder<HttpMessage<T>> httpDecoder(HttpMessage<?> message, Decoder<T> payloadDecoder) -
decodeHttp
public static <T> Decoder<HttpMessage<T>> decodeHttp(InputBuffer input, HttpMessage<?> message, Decoder<T> payloadDecoder)
-