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
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def fragment: Option[String]

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

    Permalink

    Replace the fragment.

  9. def fragment(f: String): Uri

    Permalink

    Replace the fragment.

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

    Permalink

    Replace the fragment.

  11. val fragmentSegment: Option[Segment]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. def host: String

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

    Permalink

    Replace the host.

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

  15. def hostSegment(s: Segment): Uri

    Permalink

    Replace the host.

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

  16. val hostSegment: Segment

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def multiParams: MultiQueryParams

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def param(k: String, v: String): Uri

    Permalink

    Adds the given parameter to the query.

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

    Permalink

    Adds the given parameters to the query.

  24. def params(mqp: MultiQueryParams): Uri

    Permalink

    Adds the given parameters to the query.

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

    Permalink

    Adds the given parameters to the query.

  26. def paramsMap: Map[String, String]

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

    Permalink
  28. def path: Seq[String]

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

    Permalink

    Replace path with the given path segments.

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

    Permalink

    Replace path with the given path segments.

  31. def path(p: String): Uri

    Permalink

    Replace path with the given single-segment path.

  32. def pathSegment(s: Segment): Uri

    Permalink

    Replace path with the given path segment.

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

    Permalink

    Replace path with the given path segments.

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

    Permalink

    Replace path with the given path segment.

  35. val pathSegments: Seq[Segment]

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

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

    Permalink
  38. val port: Option[Int]

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

    Permalink
  40. 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.

  41. def scheme(s: String): Uri

    Permalink

    Replace the scheme.

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

  42. val scheme: String

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

    Permalink
    Definition Classes
    AnyRef
  44. def toJavaUri: URI

    Permalink
  45. def toString(): String

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

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

    Permalink
  48. val userInfo: Option[UserInfo]

    Permalink
  49. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped