- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpMethod
-
-
Field Summary
Fields Modifier and Type Field Description static HttpMethodCONNECTstatic HttpMethodDELETEstatic HttpMethodGETstatic HttpMethodHEADstatic HttpMethodOPTIONSstatic HttpMethodPOSTstatic HttpMethodPUTstatic HttpMethodTRACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpMethodcreate(String name)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)inthashCode()Writer<?,?>httpWriter(HttpWriter http)Stringname()static HttpMethodparseHttp(String string)StringtoString()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:
httpWriterin classHttpPart
-
writeHttp
public Writer<?,?> writeHttp(Output<?> output, HttpWriter http)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites 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)
-
-