trait URLObject extends Object
Parsed URL Object
- Annotations
- @JSType() @native() @deprecated
- Deprecated
(Since version Node.js v11.0.0) Use URL instead
- Alphabetic
- By Inheritance
- URLObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val auth: UndefOr[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.
'user:pass'
Example: - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- val hash: UndefOr[String]
The hash property consists of the "fragment" portion of the URL including the leading ASCII hash (#) character.
The hash property consists of the "fragment" portion of the URL including the leading ASCII hash (#) character.
'#hash'
Example: - def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val host: UndefOr[String]
The host property is the full lower-cased host portion of the URL, including the port if specified.
The host property is the full lower-cased host portion of the URL, including the port if specified.
'host.com:8080'
Example: - val hostname: UndefOr[String]
The hostname property is the lower-cased host name portion of the host component without the port included.
The hostname property is the lower-cased host name portion of the host component without the port included.
'host.com'
Example: - val href: UndefOr[String]
The href property is the full URL string that was parsed with both the protocol and host components converted to lower-case.
The href property is the full URL string that was parsed with both the protocol and host components converted to lower-case.
http://user:[email protected]:8080/p/a/t/h?query=string#hash
Example: - 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val path: UndefOr[String]
The path property is a concatenation of the pathname and search components.
The path property is a concatenation of the pathname and search components.
'/p/a/t/h?query=string'
Example: - val pathname: UndefOr[String]
The pathname property consists of the entire path section of the URL.
The pathname property consists of the entire path section of the URL. This is everything following the host (including the port) and before the start of the query or hash components, delimited by either the ASCII question mark (?) or hash (#) characters.
'/p/a/t/h'
Example: - val port: UndefOr[String]
The port property is the numeric port portion of the host component.
The port property is the numeric port portion of the host component.
'8080'
Example: - def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val protocol: UndefOr[String]
The protocol property identifies the URL's lower-cased protocol scheme.
The protocol property identifies the URL's lower-cased protocol scheme.
'http:'
Example: - val query: UndefOr[String]
The query property is either the query string without the leading ASCII question mark (?), or an object returned by the querystring module's parse() method.
The query property is either the query string without the leading ASCII question mark (?), or an object returned by the querystring module's parse() method. Whether the query property is a string or object is determined by the parseQueryString argument passed to url.parse().
If returned as a string, no decoding of the query string is performed. If returned as an object, both keys and values are decoded.
'query=string' or {'query': 'string'}
Example: - val search: UndefOr[String]
The search property consists of the entire "query string" portion of the URL, including the leading ASCII question mark (?) character.
The search property consists of the entire "query string" portion of the URL, including the leading ASCII question mark (?) character.
'?query=string'
Example: - val slashes: UndefOr[Boolean]
The slashes property is a boolean with a value of true if two ASCII forward-slash characters (/) are required following the colon in the protocol.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()