Class CustomHeader
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.scaladsl.model.headers.CustomHeader
- All Implemented Interfaces:
Renderable,ToStringRenderable
- Direct Known Subclasses:
InternalCustomHeader,ModeledCustomHeader,NewConnectionPoolSpec.ConnNrHeader
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 Pekko HTTP),
as they allow the custom header to be matched from RawHeader and vice-versa.
-
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.javadsl.model.headers.CustomHeader
name, valueMethods inherited from class org.apache.pekko.http.scaladsl.model.HttpHeader
fastFind, is, isNot, parse, unapply, unsafeToStringMethods inherited from class org.apache.pekko.http.javadsl.model.HttpHeader
parse, renderInRequests, renderInResponsesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.impl.util.ToStringRenderable
toString
-
Constructor Details
-
CustomHeader
public CustomHeader()
-
-
Method Details
-
lowercaseName
Description copied from class:HttpHeaderReturns the lower-cased name of the header.- Specified by:
lowercaseNamein classHttpHeader
-
render
-