Package akka.http.scaladsl.model.headers
Class RawHeader
java.lang.Object
akka.http.javadsl.model.HttpHeader
akka.http.scaladsl.model.HttpHeader
akka.http.javadsl.model.headers.RawHeader
akka.http.scaladsl.model.headers.RawHeader
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,Serializable
,scala.Equals
,scala.Product
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the lower-cased name of the header.name()
Returns the name of the header.render
(R r) boolean
Returns true if and only if the header is to be rendered in requests.boolean
Returns true if and only if the header is to be rendered in responses.static <H extends HttpHeader>
scala.Option<scala.Tuple2<String,String>> unapply
(H customHeader) value()
Returns the String representation of the value of the header.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
Constructor Details
-
RawHeader
-
-
Method Details
-
unapply
public static <H extends HttpHeader> scala.Option<scala.Tuple2<String,String>> unapply(H customHeader) -
name
Description copied from class:HttpHeader
Returns the name of the header. -
value
Description copied from class:HttpHeader
Returns the String representation of the value of the header. -
renderInRequests
public boolean renderInRequests()Description copied from class:HttpHeader
Returns true if and only if the header is to be rendered in requests.- Specified by:
renderInRequests
in classHttpHeader
-
renderInResponses
public boolean renderInResponses()Description copied from class:HttpHeader
Returns true if and only if the header is to be rendered in responses.- Specified by:
renderInResponses
in classHttpHeader
-
lowercaseName
Description copied from class:HttpHeader
Returns the lower-cased name of the header.- Specified by:
lowercaseName
in classHttpHeader
-
render
- Specified by:
render
in interfaceRenderable
-