- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.ContentLength
-
- All Implemented Interfaces:
Debug
public final class ContentLength extends HttpHeader
-
-
Method Summary
Modifier and Type Method Description voiddebug(Output<?> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)static ContentLengthfrom(long length)inthashCode()longlength()StringlowerCaseName()Stringname()static Parser<ContentLength>parseHttpValue(Input input, HttpParser http)Writer<?,?>writeHttpValue(Output<?> output, HttpWriter http)-
Methods inherited from class swim.http.HttpHeader
httpWriter, isBlank, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
from
public static ContentLength from(long length)
-
parseHttpValue
public static Parser<ContentLength> parseHttpValue(Input input, HttpParser http)
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseNamein classHttpHeader
-
name
public String name()
- Specified by:
namein classHttpHeader
-
length
public long length()
-
writeHttpValue
public Writer<?,?> writeHttpValue(Output<?> output, HttpWriter http)
- Specified by:
writeHttpValuein classHttpHeader
-
-