Class RawHeader
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpHeader
org.apache.pekko.http.scaladsl.model.HttpHeader
org.apache.pekko.http.javadsl.model.headers.RawHeader
org.apache.pekko.http.scaladsl.model.headers.RawHeader
- All Implemented Interfaces:
Serializable,Renderable,ToStringRenderable,scala.Equals,scala.Product
- See Also:
-
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
Modifier and TypeMethodDescriptionReturns the lower-cased name of the header.name()Returns the name of the header.render(R r) booleanReturns true if and only if the header is to be rendered in requests.booleanReturns 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 org.apache.pekko.http.scaladsl.model.HttpHeader
fastFind, is, isNot, parse, unapply, unsafeToStringMethods inherited from class org.apache.pekko.http.javadsl.model.HttpHeader
parseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.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:HttpHeaderReturns the name of the header. -
value
Description copied from class:HttpHeaderReturns the String representation of the value of the header. -
renderInRequests
public boolean renderInRequests()Description copied from class:HttpHeaderReturns true if and only if the header is to be rendered in requests.- Specified by:
renderInRequestsin classHttpHeader
-
renderInResponses
public boolean renderInResponses()Description copied from class:HttpHeaderReturns true if and only if the header is to be rendered in responses.- Specified by:
renderInResponsesin classHttpHeader
-
lowercaseName
Description copied from class:HttpHeaderReturns the lower-cased name of the header.- Specified by:
lowercaseNamein classHttpHeader
-
render
- Specified by:
renderin interfaceRenderable
-