Class ModeledCustomHeader
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpHeader
org.apache.pekko.http.scaladsl.model.HttpHeader
org.apache.pekko.http.javadsl.model.headers.CustomHeader
org.apache.pekko.http.javadsl.model.headers.ModeledCustomHeader
- All Implemented Interfaces:
Renderable
,ToStringRenderable
Support class for building user-defined custom headers defined by implementing `name` and
`value`. Implement
ModeledCustomHeader
and ModeledCustomHeaderFactory
instead of
CustomHeader
to be able to use the convenience methods that allow parsing the custom
user-defined header from HttpHeader
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.pekko.http.scaladsl.model.HttpHeader
fastFind, is, isNot, parse, unapply, unsafeToString
Methods inherited from class org.apache.pekko.http.javadsl.model.HttpHeader
parse, renderInRequests, renderInResponses
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pekko.http.impl.util.ToStringRenderable
toString
-
Constructor Details
-
ModeledCustomHeader
-
-
Method Details
-
name
Description copied from class:HttpHeader
Returns the name of the header.- Specified by:
name
in classCustomHeader
-
lowercaseName
Description copied from class:HttpHeader
Returns the lower-cased name of the header.- Specified by:
lowercaseName
in classHttpHeader
-
value
Description copied from class:HttpHeader
Returns the String representation of the value of the header.- Specified by:
value
in classCustomHeader
-
render
-