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
public abstract class CustomHeader extends CustomHeader
Superclass for user-defined custom headers defined by implementingname
andvalue
.Prefer to extend
ModeledCustomHeader
andModeledCustomHeaderCompanion
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 fromRawHeader
and vice-versa.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
-
Constructor Summary
Constructors Constructor Description CustomHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
lowercaseName()
Returns the lower-cased name of the header.<R extends Rendering>
Renderingrender(R r)
-
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
-
-
-
-
Method Detail
-
lowercaseName
public java.lang.String lowercaseName()
Description copied from class:HttpHeader
Returns the lower-cased name of the header.- Specified by:
lowercaseName
in classHttpHeader
-
-