final case class URL(path: Path, kind: Location = URL.Location.Relative, queryParams: QueryParams = QueryParams.empty, fragment: Option[Fragment] = None) extends URLPlatformSpecific with QueryOps[URL] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. URL
  2. Serializable
  3. Product
  4. Equals
  5. QueryOps
  6. QueryChecks
  7. QueryGetters
  8. QueryModifier
  9. URLPlatformSpecific
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new URL(path: Path, kind: Location = URL.Location.Relative, queryParams: QueryParams = QueryParams.empty, fragment: Option[Fragment] = None)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(that: URL): URL

    A right-biased way of combining two URLs.

    A right-biased way of combining two URLs. Where it makes sense, information will be merged, but in cases where this does not make sense (e.g. two non-empty fragments), the information from the right URL will be used.

  4. def ++(that: QueryParams): URL

    Combines two collections of query parameters together.

    Combines two collections of query parameters together. If there are duplicate keys, the values from both sides are preserved, in order from left-to-right.

    Definition Classes
    QueryModifier
  5. def /(segment: String): URL
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def absolute(scheme: Scheme, host: String, port: Int): URL
  8. def absolute(host: String): URL
  9. def addLeadingSlash: URL
  10. def addPath(path: String): URL
  11. def addPath(path: Path): URL
  12. def addQueryParam(key: String, value: String): URL

    Adds the specified key/value pair to the query parameters.

    Adds the specified key/value pair to the query parameters.

    Definition Classes
    QueryModifier
  13. def addQueryParams(queryParams: QueryParams): URL
  14. def addQueryParams(values: String): URL
    Definition Classes
    QueryModifier
  15. def addQueryParams(key: String, value: Chunk[String]): URL

    Adds the specified key/value pairs to the query parameters.

    Adds the specified key/value pairs to the query parameters.

    Definition Classes
    QueryModifier
  16. def addTrailingSlash: URL
  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  19. def dropLeadingSlash: URL
  20. def dropTrailingSlash: URL
  21. def encode: String
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(that: Any): Boolean
    Definition Classes
    URL → Equals → AnyRef → Any
  24. val fragment: Option[Fragment]
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  26. def hasQueryParam(name: CharSequence): Boolean
    Definition Classes
    QueryChecks
  27. def hashCode(): Int
    Definition Classes
    URL → AnyRef → Any
  28. def host(host: String): URL
  29. def host: Option[String]
  30. def hostPort: Option[String]

    returns

    the location, the host name and the port. The port part is omitted if is the default port for the protocol.

  31. def isAbsolute: Boolean
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def isRelative: Boolean
  34. val kind: Location
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. def normalize: URL
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  39. def path(path: String): URL
  40. def path(path: Path): URL
  41. val path: Path
  42. def port: Option[Int]
  43. def port(port: Int): URL
  44. def portIfNotDefault: Option[Int]
  45. def portOrDefault: Option[Int]
  46. def productElementNames: Iterator[String]
    Definition Classes
    Product
  47. def queryParam(key: String): Option[String]

    Retrieves the first query parameter value having the specified name.

    Retrieves the first query parameter value having the specified name.

    Definition Classes
    QueryGetters
  48. def queryParamOrElse(key: String, default: => String): String

    Retrieves the first query parameter value having the specified name, or else uses the default value.

    Retrieves the first query parameter value having the specified name, or else uses the default value.

    Definition Classes
    QueryGetters
  49. def queryParamTo[T](key: String)(implicit codec: TextCodec[T]): Either[QueryParamsError, T]

    Retrieves the first typed query parameter value having the specified name.

    Retrieves the first typed query parameter value having the specified name.

    Definition Classes
    QueryGetters
  50. def queryParamToOrElse[T](key: String, default: => T)(implicit codec: TextCodec[T]): T

    Retrieves the first typed query parameter value having the specified name, or else uses the default value.

    Retrieves the first typed query parameter value having the specified name, or else uses the default value.

    Definition Classes
    QueryGetters
  51. def queryParamToZIO[T](key: String)(implicit codec: TextCodec[T]): IO[QueryParamsError, T]

    Retrieves the first typed query parameter value having the specified name as ZIO.

    Retrieves the first typed query parameter value having the specified name as ZIO.

    Definition Classes
    QueryGetters
  52. def queryParameters: QueryParams
    Definition Classes
    URLQueryGetters
  53. def queryParams(key: String): Chunk[String]

    Retrieves all query parameter values having the specified name.

    Retrieves all query parameter values having the specified name.

    Definition Classes
    QueryGetters
  54. val queryParams: QueryParams
  55. def queryParamsOrElse(key: String, default: => Iterable[String]): Chunk[String]

    Retrieves all query parameter values having the specified name, or else uses the default iterable.

    Retrieves all query parameter values having the specified name, or else uses the default iterable.

    Definition Classes
    QueryGetters
  56. def queryParamsTo[T](key: String)(implicit codec: TextCodec[T]): Either[QueryParamsError, Chunk[T]]

    Retrieves all typed query parameter values having the specified name.

    Retrieves all typed query parameter values having the specified name.

    Definition Classes
    QueryGetters
  57. def queryParamsToOrElse[T](key: String, default: => Iterable[T])(implicit codec: TextCodec[T]): Chunk[T]

    Retrieves all query parameter values having the specified name, or else uses the default iterable.

    Retrieves all query parameter values having the specified name, or else uses the default iterable.

    Definition Classes
    QueryGetters
  58. def queryParamsToZIO[T](key: String)(implicit codec: TextCodec[T]): IO[QueryParamsError, Chunk[T]]

    Retrieves all typed query parameter values having the specified name as ZIO.

    Retrieves all typed query parameter values having the specified name as ZIO.

    Definition Classes
    QueryGetters
  59. def relative: URL
  60. def removeQueryParam(key: String): URL

    Removes the specified key from the query parameters.

    Removes the specified key from the query parameters.

    Definition Classes
    QueryModifier
  61. def removeQueryParams(keys: Iterable[String]): URL

    Removes the specified keys from the query parameters.

    Removes the specified keys from the query parameters.

    Definition Classes
    QueryModifier
  62. def resolve(reference: URL): Either[String, URL]

    RFC 3986 § 5.2 Relative Resolution

    RFC 3986 § 5.2 Relative Resolution

    reference

    the URL to resolve relative to this base URL

    returns

    the target URL

  63. def scheme(scheme: Scheme): URL
  64. def scheme: Option[Scheme]
  65. def setQueryParams(queryParams: (String, Chunk[String])*): URL
    Definition Classes
    QueryModifier
  66. def setQueryParams(queryParams: Map[String, Chunk[String]]): URL
    Definition Classes
    QueryModifier
  67. def setQueryParams(values: String): URL
    Definition Classes
    QueryModifier
  68. def setQueryParams(values: QueryParams): URL
    Definition Classes
    QueryModifier
  69. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  70. def toJavaURI: URI

    Returns a new java.net.URI representing this URL.

  71. def updateQueryParams(f: (QueryParams) => QueryParams): URL
    Definition Classes
    URLQueryModifier
  72. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  73. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  74. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from QueryOps[URL]

Inherited from QueryChecks[URL]

Inherited from QueryGetters[URL]

Inherited from QueryModifier[URL]

Inherited from URLPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped