final case class Authority(host: Host, port: Int = 0, userinfo: String = "") extends javadsl.model.Authority with Product with Serializable
- port
A port number that may be
0
to signal the default port of for scheme. In general what you want is not the value of this field but Uri.effectivePort.- userinfo
The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1 the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters after the colon (
:
). Therefore, it is not guaranteed that future versions of this class will preserve full userinfo between parsing and rendering (even if it might do so right now).
- Source
- Uri.scala
- Alphabetic
- By Inheritance
- Authority
- Serializable
- Product
- Equals
- Authority
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Authority(host: Host, port: Int = 0, userinfo: String = "")
- port
A port number that may be
0
to signal the default port of for scheme. In general what you want is not the value of this field but Uri.effectivePort.- userinfo
The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1 the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters after the colon (
:
). Therefore, it is not guaranteed that future versions of this class will preserve full userinfo between parsing and rendering (even if it might do so right now).
Value Members
- val host: Host
Host in a URI
- def isEmpty: Boolean
- def nonEmpty: Boolean
- def normalizedFor(scheme: String): Authority
- def normalizedForHttp(encrypted: Boolean = false): Authority
- val port: Int
A port number that may be
0
to signal the default port of for scheme. - def productElementNames: Iterator[String]
- Definition Classes
- Product
- def toString(): String
- Definition Classes
- Authority → AnyRef → Any
- val userinfo: String
The percent decoded userinfo.
The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1 the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters after the colon (
:
). Therefore, it is not guaranteed that future versions of this class will preserve full userinfo between parsing and rendering (even if it might do so right now).