Class RawHeader

    • Constructor Summary

      Constructors 
      Constructor Description
      RawHeader​(java.lang.String name, java.lang.String value)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String lowercaseName()
      Returns the lower-cased name of the header.
      java.lang.String name()
      Returns the name of the header.
      <R extends Rendering>
      Rendering
      render​(R r)  
      boolean renderInRequests()
      Returns true if and only if the header is to be rendered in requests.
      boolean renderInResponses()
      Returns true if and only if the header is to be rendered in responses.
      static <H extends HttpHeader>
      scala.Option<scala.Tuple2<java.lang.String,​java.lang.String>>
      unapply​(H customHeader)  
      java.lang.String value()
      Returns the String representation of the value of the header.
      • Methods inherited from class akka.http.javadsl.model.headers.RawHeader

        create
      • 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
    • Constructor Detail

      • RawHeader

        public RawHeader​(java.lang.String name,
                         java.lang.String value)
    • Method Detail

      • unapply

        public static <H extends HttpHeader> scala.Option<scala.Tuple2<java.lang.String,​java.lang.String>> unapply​(H customHeader)
      • name

        public java.lang.String name()
        Description copied from class: HttpHeader
        Returns the name of the header.
        Specified by:
        name in class RawHeader
      • value

        public java.lang.String value()
        Description copied from class: HttpHeader
        Returns the String representation of the value of the header.
        Specified by:
        value in class RawHeader
      • 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 class HttpHeader
      • 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 class HttpHeader
      • lowercaseName

        public java.lang.String lowercaseName()
        Description copied from class: HttpHeader
        Returns the lower-cased name of the header.
        Specified by:
        lowercaseName in class HttpHeader