- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpMethod
-
-
Field Summary
Fields Modifier and Type Field Description static HttpMethod
CONNECT
static HttpMethod
DELETE
static HttpMethod
GET
static HttpMethod
HEAD
static HttpMethod
OPTIONS
static HttpMethod
POST
static HttpMethod
PUT
static HttpMethod
TRACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpMethod
create(String name)
<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)
String
name()
static HttpMethod
parseHttp(String string)
String
toString()
Writer<?,?>
writeHttp(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Field Detail
-
GET
public static final HttpMethod GET
-
HEAD
public static final HttpMethod HEAD
-
POST
public static final HttpMethod POST
-
PUT
public static final HttpMethod PUT
-
DELETE
public static final HttpMethod DELETE
-
CONNECT
public static final HttpMethod CONNECT
-
OPTIONS
public static final HttpMethod OPTIONS
-
TRACE
public static final HttpMethod TRACE
-
-
Method Detail
-
name
public String name()
-
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 HttpMethod create(String name)
-
parseHttp
public static HttpMethod parseHttp(String string)
-
-