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. Serializable
  4. Product
  5. Equals
  6. QueryOps
  7. QueryChecks
  8. QueryGetters
  9. QueryModifier
  10. URLPlatformSpecific
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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( ... ) @native() @IntrinsicCandidate()
  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[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  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
    @native() @IntrinsicCandidate()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  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 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. def queryParameters: QueryParams
    Definition Classes
    URLQueryGetters
  52. 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
  53. val queryParams: QueryParams
  54. 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
  55. 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
  56. 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
  57. 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
  58. def relative: URL
  59. def removeQueryParam(key: String): URL

    Removes the specified key from the query parameters.

    Removes the specified key from the query parameters.

    Definition Classes
    QueryModifier
  60. 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
  61. 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

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

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

  70. def updateQueryParams(f: (QueryParams) ⇒ QueryParams): URL
    Definition Classes
    URLQueryModifier
  71. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  73. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

Inherited from Serializable

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