public abstract class ModeledCustomHeader<H extends ModeledCustomHeader<H>> extends CustomHeader
name
and value
.
By implementing a ModeledCustomHeader
instead of CustomHeader
directly, all needed unapply
methods are provided for this class, such that it can be pattern matched on from RawHeader
and
the other way around as well.HttpHeader.ParsingResult, HttpHeader.ParsingResult$
Constructor and Description |
---|
ModeledCustomHeader() |
Modifier and Type | Method and Description |
---|---|
abstract ModeledCustomHeaderCompanion<H> |
companion() |
java.lang.String |
lowercaseName()
Returns the lower-cased name of the header.
|
java.lang.String |
name()
Returns the name of the header.
|
render
value
fastFind, is, isNot, parse, unapply, unsafeToString
parse, renderInRequests, renderInResponses
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public abstract ModeledCustomHeaderCompanion<H> companion()
public final java.lang.String lowercaseName()
HttpHeader
lowercaseName
in class CustomHeader
public final java.lang.String name()
HttpHeader
name
in class CustomHeader