Class NewConnectionPoolSpec.ConnNrHeader
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
org.apache.pekko.http.impl.engine.client.NewConnectionPoolSpec.ConnNrHeader
- All Implemented Interfaces:
Serializable
,Renderable
,ToStringRenderable
,scala.Equals
,scala.Product
- Enclosing class:
- NewConnectionPoolSpec
public class NewConnectionPoolSpec.ConnNrHeader
extends CustomHeader
implements scala.Product, Serializable
- 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 TypeMethodDescriptionabstract static R
apply
(T1 v1) name()
Returns the name of the header.int
nr()
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 String
toString()
value()
Returns the String representation of the value of the header.Methods inherited from class org.apache.pekko.http.scaladsl.model.headers.CustomHeader
lowercaseName, render
Methods inherited from class org.apache.pekko.http.scaladsl.model.HttpHeader
fastFind, is, isNot, parse, unapply, unsafeToString
Methods inherited from class org.apache.pekko.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 org.apache.pekko.http.impl.util.ToStringRenderable
toString
-
Constructor Details
-
ConnNrHeader
public ConnNrHeader(int nr)
-
-
Method Details
-
apply
public abstract static R apply(T1 v1) -
toString
-
nr
public int nr() -
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
-
name
Description copied from class:HttpHeader
Returns the name of the header.- Specified by:
name
in classCustomHeader
-
value
Description copied from class:HttpHeader
Returns the String representation of the value of the header.- Specified by:
value
in classCustomHeader
-