Class/Object

sttp.model

Uri

Related Docs: object Uri | package model

Permalink

case class Uri extends Product with Serializable

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

Instances can be created using the uri interpolator: uri"..." (see UriInterpolator), or the factory methods on the Uri companion object.

Linear Supertypes
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

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: Option[String]

    Permalink
  9. def fragment(f: Option[String]): Uri

    Permalink

    Replace the fragment.

  10. def fragment(f: String): Uri

    Permalink

    Replace the fragment.

  11. def fragmentSegment(s: Option[Segment]): Uri

    Permalink

    Replace the fragment.

  12. val fragmentSegment: Option[Segment]

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def host: String

    Permalink
  15. def host(h: String): Uri

    Permalink

    Replace the host.

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

  16. def hostSegment(s: Segment): Uri

    Permalink

    Replace the host.

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

  17. val hostSegment: Segment

    Permalink
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def multiParams: MultiQueryParams

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def param(k: String, v: Option[String]): Uri

    Permalink

    Adds the given parameter with an optional value to the query if it is present.

  24. def param(k: String, v: String): Uri

    Permalink

    Adds the given parameter to the query.

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

    Permalink

    Adds the given parameters to the query.

  26. def params(mqp: MultiQueryParams): Uri

    Permalink

    Adds the given parameters to the query.

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

    Permalink

    Adds the given parameters to the query.

  28. def paramsMap: Map[String, String]

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

    Permalink
  30. def path: Seq[String]

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

    Permalink

    Replace path with the given path segments.

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

    Permalink

    Replace path with the given path segments.

  33. def path(p: String): Uri

    Permalink

    Replace path with the given single-segment path.

  34. def pathSegment(s: Segment): Uri

    Permalink

    Replace path with the given path segment.

  35. def pathSegments(ss: Seq[Segment]): Uri

    Permalink

    Replace path with the given path segments.

  36. def pathSegments(s1: Segment, s2: Segment, ss: Segment*): Uri

    Permalink

    Replace path with the given path segment.

  37. val pathSegments: Seq[Segment]

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

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

    Permalink
  40. val port: Option[Int]

    Permalink
  41. def querySegment(qf: QuerySegment): Uri

    Permalink
  42. val querySegments: Seq[QuerySegment]

    Permalink

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

    Either key-value pairs, single values, or plain query segments. 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 segments - if required, they need to be added manually as part of the plain query segment.

  43. def scheme(s: String): Uri

    Permalink

    Replace the scheme.

    Replace the scheme. Does not validate the new scheme value.

  44. val scheme: String

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

    Permalink
    Definition Classes
    AnyRef
  46. def toJavaUri: URI

    Permalink
  47. def toString(): String

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

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

    Permalink
  50. val userInfo: Option[UserInfo]

    Permalink
  51. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. 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