- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpMethod
-
- All Implemented Interfaces:
swim.codec.Debug
public final class HttpMethod extends HttpPart implements swim.codec.Debug
-
-
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 voiddebug(swim.codec.Output<?> output)booleanequals(Object other)static HttpMethodfrom(String name)inthashCode()swim.codec.Writer<?,?>httpWriter(HttpWriter http)Stringname()static HttpMethodparseHttp(String string)StringtoString()swim.codec.Writer<?,?>writeHttp(swim.codec.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
-
from
public static HttpMethod from(String name)
-
parseHttp
public static HttpMethod parseHttp(String string)
-
name
public String name()
-
httpWriter
public swim.codec.Writer<?,?> httpWriter(HttpWriter http)
- Specified by:
httpWriterin classHttpPart
-
writeHttp
public swim.codec.Writer<?,?> writeHttp(swim.codec.Output<?> output, HttpWriter http)
-
debug
public void debug(swim.codec.Output<?> output)
- Specified by:
debugin interfaceswim.codec.Debug
-
-