- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpVersion
-
-
Field Summary
Fields Modifier and Type Field Description static HttpVersion
HTTP_1_0
static HttpVersion
HTTP_1_1
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpVersion
create(int major, int minor)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
int
hashCode()
Writer<?,?>
httpWriter(HttpWriter http)
int
major()
int
minor()
static HttpVersion
parseHttp(String string)
String
toString()
Writer<?,?>
writeHttp(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Field Detail
-
HTTP_1_1
public static final HttpVersion HTTP_1_1
-
HTTP_1_0
public static final HttpVersion HTTP_1_0
-
-
Method Detail
-
major
public int major()
-
minor
public int minor()
-
httpWriter
public Writer<?,?> httpWriter(HttpWriter http)
- Specified by:
httpWriter
in classHttpPart
-
writeHttp
public Writer<?,?> writeHttp(Output<?> output, HttpWriter http)
-
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
.
-
create
public static HttpVersion create(int major, int minor)
-
parseHttp
public static HttpVersion parseHttp(String string)
-
-