Authority

sttp.model.Uri$.Authority
See theAuthority companion object
case class Authority(userInfo: Option[UserInfo], hostSegment: Segment, port: Option[Int])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def host(h: String): Authority

Replace the host. Does not validate the new host value if it's nonempty.

Replace the host. Does not validate the new host value if it's nonempty.

Attributes

def host: String

Replace the host. Does not validate the new host value if it's nonempty.

Replace the host. Does not validate the new host value if it's nonempty.

Attributes

def port(p: Int): Authority

Replace the port.

Replace the port.

Attributes

def port(p: Option[Int]): Authority

Replace the port.

Replace the port.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def userInfo(username: String): Authority

Replace the user info with a username only.

Replace the user info with a username only.

Attributes

def userInfo(username: String, password: String): Authority

Replace the user info with username/password combination.

Replace the user info with username/password combination.

Attributes

def userInfo(ui: Option[UserInfo]): Authority

Replace the user info.

Replace the user info.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product