- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.Upgrade
-
- All Implemented Interfaces:
Debug
public final class Upgrade extends HttpHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Upgradecreate(String... protocolStrings)static Upgradecreate(FingerTrieSeq<UpgradeProtocol> protocols)static Upgradecreate(UpgradeProtocol... protocols)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)inthashCode()StringlowerCaseName()Stringname()static Parser<Upgrade>parseHttpValue(Input input, HttpParser http)FingerTrieSeq<UpgradeProtocol>protocols()booleansupports(UpgradeProtocol protocol)static Upgradewebsocket()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
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseNamein classHttpHeader
-
name
public String name()
- Specified by:
namein classHttpHeader
-
protocols
public FingerTrieSeq<UpgradeProtocol> protocols()
-
supports
public boolean supports(UpgradeProtocol protocol)
-
writeHttpValue
public Writer<?,?> writeHttpValue(Output<?> output, HttpWriter http)
- Specified by:
writeHttpValuein classHttpHeader
-
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.- Specified by:
debugin interfaceDebug- Specified by:
debugin classHttpHeader- Returns:
- the continuation of the
output.
-
websocket
public static Upgrade websocket()
-
create
public static Upgrade create(FingerTrieSeq<UpgradeProtocol> protocols)
-
create
public static Upgrade create(UpgradeProtocol... protocols)
-
parseHttpValue
public static Parser<Upgrade> parseHttpValue(Input input, HttpParser http)
-
-