java.lang.Object
swim.http.HttpPart
swim.http.HttpMessage<T>
swim.http.HttpResponse<T>
- All Implemented Interfaces:
swim.codec.Debug
-
Method Summary
Modifier and TypeMethodDescriptionappendedHeader(HttpHeader newHeader) appendedHeaders(swim.collections.FingerTrieSeq<HttpHeader> newHeaders) appendedHeaders(HttpHeader... newHeaders) <T2> HttpResponse<T2>content(HttpPayload<T2> payload) static <T> HttpResponse<T>create(HttpStatus status) static <T> HttpResponse<T>create(HttpStatus status, swim.collections.FingerTrieSeq<HttpHeader> headers) static <T> HttpResponse<T>create(HttpStatus status, HttpHeader... headers) static <T> HttpResponse<T>create(HttpVersion version, HttpStatus status) static <T> HttpResponse<T>create(HttpVersion version, HttpStatus status, swim.collections.FingerTrieSeq<HttpHeader> headers) static <T> HttpResponse<T>create(HttpVersion version, HttpStatus status, swim.collections.FingerTrieSeq<HttpHeader> headers, HttpPayload<T> payload) static <T> HttpResponse<T>create(HttpVersion version, HttpStatus status, HttpHeader... headers) <T> swim.codec.Output<T>debug(swim.codec.Output<T> output) swim.codec.Encoder<?,HttpResponse<T>> encodeHttp(swim.codec.OutputBuffer<?> output) swim.codec.Encoder<?,HttpResponse<T>> encodeHttp(swim.codec.OutputBuffer<?> output, HttpWriter http) booleaninthashCode()swim.collections.FingerTrieSeq<HttpHeader>headers()headers(swim.collections.FingerTrieSeq<HttpHeader> headers) headers(HttpHeader... headers) swim.codec.Encoder<?,HttpResponse<T>> swim.codec.Encoder<?,HttpResponse<T>> httpEncoder(HttpWriter http) swim.codec.Writer<?,HttpResponse<T>> swim.codec.Writer<?,HttpResponse<T>> httpWriter(HttpWriter http) static <T> HttpResponse<T>payload()<T2> HttpResponse<T2>payload(HttpPayload<T2> payload) <T2> swim.codec.Decoder<HttpResponse<T2>>payloadDecoder(swim.codec.Decoder<T2> contentDecoder) static <T> HttpResponse<T>redirect(swim.uri.Uri location) static <T> HttpResponse<T>redirect(swim.uri.Uri location, swim.collections.FingerTrieSeq<HttpHeader> headers) static <T> HttpResponse<T>redirect(swim.uri.Uri location, HttpHeader... headers) status()status(HttpStatus status) toString()updatedHeader(HttpHeader newHeader) updatedHeaders(swim.collections.FingerTrieSeq<HttpHeader> newHeaders) updatedHeaders(HttpHeader... newHeaders) version()version(HttpVersion version) swim.codec.Writer<?,HttpResponse<T>> writeHttp(swim.codec.Output<?> output) swim.codec.Writer<?,HttpResponse<T>> writeHttp(swim.codec.Output<?> output, HttpWriter http) Methods inherited from class swim.http.HttpMessage
contentDecoder, contentDecoder, detectContentDecoder, getHeader, getHeader
-
Method Details
-
version
- Specified by:
versionin classHttpMessage<T>
-
version
-
status
-
status
-
headers
- Specified by:
headersin classHttpMessage<T>
-
headers
- Specified by:
headersin classHttpMessage<T>
-
headers
- Specified by:
headersin classHttpMessage<T>
-
appendedHeaders
- Specified by:
appendedHeadersin classHttpMessage<T>
-
appendedHeaders
- Specified by:
appendedHeadersin classHttpMessage<T>
-
appendedHeader
- Specified by:
appendedHeaderin classHttpMessage<T>
-
updatedHeaders
- Specified by:
updatedHeadersin classHttpMessage<T>
-
updatedHeaders
- Specified by:
updatedHeadersin classHttpMessage<T>
-
updatedHeader
- Specified by:
updatedHeaderin classHttpMessage<T>
-
payload
- Specified by:
payloadin classHttpMessage<T>
-
payload
- Specified by:
payloadin classHttpMessage<T>
-
content
- Specified by:
contentin classHttpMessage<T>
-
body
- Specified by:
bodyin classHttpMessage<T>
-
body
- Specified by:
bodyin classHttpMessage<T>
-
payloadDecoder
public <T2> swim.codec.Decoder<HttpResponse<T2>> payloadDecoder(swim.codec.Decoder<T2> contentDecoder) - Overrides:
payloadDecoderin classHttpMessage<T>
-
httpEncoder
- Overrides:
httpEncoderin classHttpMessage<T>
-
httpEncoder
- Overrides:
httpEncoderin classHttpMessage<T>
-
encodeHttp
public swim.codec.Encoder<?,HttpResponse<T>> encodeHttp(swim.codec.OutputBuffer<?> output, HttpWriter http) - Overrides:
encodeHttpin classHttpMessage<T>
-
encodeHttp
- Overrides:
encodeHttpin classHttpMessage<T>
-
httpWriter
- Specified by:
httpWriterin classHttpPart
-
httpWriter
- Overrides:
httpWriterin classHttpPart
-
writeHttp
-
writeHttp
-
equals
-
hashCode
public int hashCode() -
debug
public <T> swim.codec.Output<T> debug(swim.codec.Output<T> output) - Specified by:
debugin interfaceswim.codec.Debug
-
toString
-
create
public static <T> HttpResponse<T> create(HttpVersion version, HttpStatus status, swim.collections.FingerTrieSeq<HttpHeader> headers, HttpPayload<T> payload) -
create
public static <T> HttpResponse<T> create(HttpVersion version, HttpStatus status, swim.collections.FingerTrieSeq<HttpHeader> headers) -
create
public static <T> HttpResponse<T> create(HttpVersion version, HttpStatus status, HttpHeader... headers) -
create
-
create
public static <T> HttpResponse<T> create(HttpStatus status, swim.collections.FingerTrieSeq<HttpHeader> headers) -
create
-
create
-
redirect
-
redirect
public static <T> HttpResponse<T> redirect(swim.uri.Uri location, swim.collections.FingerTrieSeq<HttpHeader> headers) -
redirect
-
parseHttp
-