Package akka.http.scaladsl.model.headers
Class CustomHeader
java.lang.Object
akka.http.javadsl.model.HttpHeader
akka.http.scaladsl.model.HttpHeader
akka.http.javadsl.model.headers.CustomHeader
akka.http.scaladsl.model.headers.CustomHeader
- All Implemented Interfaces:
Renderable
,ToStringRenderable
- Direct Known Subclasses:
InternalCustomHeader
,ModeledCustomHeader
Superclass for user-defined custom headers defined by implementing
name
and value
.
Prefer to extend ModeledCustomHeader
and ModeledCustomHeaderCompanion
instead if
planning to use the defined header in match clauses (e.g. in the routing layer of Akka HTTP),
as they allow the custom header to be matched from RawHeader
and vice-versa.
-
Nested Class Summary
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class akka.http.javadsl.model.headers.CustomHeader
name, value
Methods inherited from class akka.http.scaladsl.model.HttpHeader
fastFind, is, isNot, parse, unapply, unsafeToString
Methods inherited from class akka.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 akka.http.impl.util.ToStringRenderable
toString
-
Constructor Details
-
CustomHeader
public CustomHeader()
-
-
Method Details
-
lowercaseName
Description copied from class:HttpHeader
Returns the lower-cased name of the header.- Specified by:
lowercaseName
in classHttpHeader
-
render
-