class URL extends Object
- Annotations
- @JSType() @native() @JSImport( "url" , "URL" )
- Alphabetic
- By Inheritance
- URL
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
var
hash: String
Gets and sets the fragment portion of the URL.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
var
host: String
Gets and sets the host portion of the URL.
-
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.
-
var
href: String
Gets and sets the serialized URL.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
var
origin: String
Gets the read-only serialization of the URL's origin.
-
var
password: String
Gets and sets the password portion of the URL.
-
var
pathname: String
Gets and sets the path portion of the URL.
-
var
port: String
Gets and sets the port portion of the URL.
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
var
protocol: String
Gets and sets the protocol portion of the URL.
-
var
search: String
Gets and sets the serialized query portion of the URL.
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
var
username: String
Gets and sets the username portion of the URL.
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )