Packages

class URL extends Object

Annotations
@JSType() @native() @JSImport("url", "URL")
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. URL
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new URL(input: String)
  2. new URL(input: String, base: URL)
  3. new URL(input: String, base: String)
  4. new URL()
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. var auth: String

    The auth property is the username and password portion of the URL, also referred to as "userinfo".

    The auth property is the username and password portion of the URL, also referred to as "userinfo". This string subset follows the protocol and double slashes (if present) and precedes the host component, delimited by an ASCII "at sign" (@). The format of the string is {username}[:{password}], with the [:{password}] portion being optional.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  12. var hash: String

    Gets and sets the fragment portion of the URL.

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. var host: String

    Gets and sets the host portion of the URL.

  15. var hostname: String

    Gets and sets the hostname portion of the URL.

    Gets and sets the hostname portion of the URL. The key difference between url.host and url.hostname is that url.hostname does not include the port.

  16. var href: String

    Gets and sets the serialized URL.

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. var origin: String

    Gets the read-only serialization of the URL's origin.

  23. var password: String

    Gets and sets the password portion of the URL.

  24. var pathname: String

    Gets and sets the path portion of the URL.

  25. var port: String

    Gets and sets the port portion of the URL.

  26. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  27. var protocol: String

    Gets and sets the protocol portion of the URL.

  28. var search: String

    Gets and sets the serialized query portion of the URL.

  29. var searchParams: URLSearchParams

    Gets the URLSearchParams object representing the query parameters of the URL.

    Gets the URLSearchParams object representing the query parameters of the URL. This property is read-only; to replace the entirety of query parameters of the URL, use the url.search setter. See URLSearchParams documentation for details.

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toJSON(): String

    The toJSON() method on the URL object returns the serialized URL.

    The toJSON() method on the URL object returns the serialized URL. The value returned is equivalent to that of url.href and url.toString().

    This method is automatically called when an URL object is serialized with JSON.stringify().

    returns

    a JSON representation of the URL

  32. def toLocaleString(): String
    Definition Classes
    Object
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. var username: String

    Gets and sets the username portion of the URL.

  35. def valueOf(): Any
    Definition Classes
    Object
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped