Class/Object

sttp.model

Uri

Related Docs: object Uri | package model

Permalink

case class Uri(scheme: String, userInfo: Option[UserInfo], host: String, port: Option[Int], path: Seq[String], queryFragments: Seq[QueryFragment], fragment: Option[String]) extends Product with Serializable

A URI. All components (scheme, host, query, ...) are stored unencoded, and become encoded upon serialization (using toString).

queryFragments

Either key-value pairs, single values, or plain query fragments. Key value pairs will be serialized as k=v, and blocks of key-value pairs/single values will be combined using &. Note that no & or other separators are added around plain query fragments - if required, they need to be added manually as part of the plain query fragment.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Uri
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Uri(scheme: String, userInfo: Option[UserInfo], host: String, port: Option[Int], path: Seq[String], queryFragments: Seq[QueryFragment], fragment: Option[String])

    Permalink

    queryFragments

    Either key-value pairs, single values, or plain query fragments. Key value pairs will be serialized as k=v, and blocks of key-value pairs/single values will be combined using &. Note that no & or other separators are added around plain query fragments - if required, they need to be added manually as part of the plain query fragment.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. def fragment(f: Option[String]): Uri

    Permalink
  9. def fragment(f: String): Uri

    Permalink
  10. val fragment: Option[String]

    Permalink
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def host(h: String): Uri

    Permalink
  13. val host: String

    Permalink
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def multiParamsMap: Map[String, Seq[String]]

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def param(k: String, v: String): Uri

    Permalink

    Adds the given parameter to the query.

  20. def params(ps: (String, String)*): Uri

    Permalink

    Adds the given parameters to the query.

  21. def params(mqp: MultiQueryParams): Uri

    Permalink

    Adds the given parameters to the query.

  22. def params(ps: Map[String, String]): Uri

    Permalink

    Adds the given parameters to the query.

  23. def paramsMap: Map[String, String]

    Permalink
  24. def paramsSeq: Seq[(String, String)]

    Permalink
  25. def path(ps: Seq[String]): Uri

    Permalink
  26. def path(p1: String, p2: String, ps: String*): Uri

    Permalink
  27. def path(p: String): Uri

    Permalink
  28. val path: Seq[String]

    Permalink
  29. def port(p: Option[Int]): Uri

    Permalink
  30. def port(p: Int): Uri

    Permalink
  31. val port: Option[Int]

    Permalink
  32. def queryFragment(qf: QueryFragment): Uri

    Permalink
  33. val queryFragments: Seq[QueryFragment]

    Permalink

    Either key-value pairs, single values, or plain query fragments.

    Either key-value pairs, single values, or plain query fragments. Key value pairs will be serialized as k=v, and blocks of key-value pairs/single values will be combined using &. Note that no & or other separators are added around plain query fragments - if required, they need to be added manually as part of the plain query fragment.

  34. def scheme(s: String): Uri

    Permalink
  35. val scheme: String

    Permalink
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toJavaUri: URI

    Permalink
  38. def toString(): String

    Permalink
    Definition Classes
    Uri → AnyRef → Any
  39. def userInfo(username: String, password: String): Uri

    Permalink
  40. def userInfo(username: String): Uri

    Permalink
  41. val userInfo: Option[UserInfo]

    Permalink
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped