summaryrefslogtreecommitdiff
path: root/doc/api/url.md
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2017-04-26 17:41:17 -0700
committerJames M Snell <jasnell@gmail.com>2017-04-28 13:18:59 -0700
commit9d4bb55bdb7de9b96ebfa7b025a8229fed76961d (patch)
tree8674126b595f5615f36d917bbb61d24e4d71ab77 /doc/api/url.md
parent3a0058cd4aedbd2b0a981cbc4595b63b2af29d4f (diff)
downloadandroid-node-v8-9d4bb55bdb7de9b96ebfa7b025a8229fed76961d.tar.gz
android-node-v8-9d4bb55bdb7de9b96ebfa7b025a8229fed76961d.tar.bz2
android-node-v8-9d4bb55bdb7de9b96ebfa7b025a8229fed76961d.zip
doc: add Added-in metadata for WHATWG URL
PR-URL: https://github.com/nodejs/node/pull/12683 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r--doc/api/url.md26
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/api/url.md b/doc/api/url.md
index f6f562af4f..1356e7c038 100644
--- a/doc/api/url.md
+++ b/doc/api/url.md
@@ -132,6 +132,9 @@ forward-slash characters (`/`) are required following the colon in the
`protocol`.
## url.domainToASCII(domain)
+<!-- YAML
+added: v7.4.0
+-->
> Stability: 1 - Experimental
@@ -154,6 +157,9 @@ console.log(url.domainToASCII('xn--iƱvalid.com'));
```
## url.domainToUnicode(domain)
+<!-- YAML
+added: v7.4.0
+-->
> Stability: 1 - Experimental
@@ -243,6 +249,9 @@ The formatting process operates as follows:
* `result` is returned.
## url.format(URL[, options])
+<!-- YAML
+added: v7.6.0
+-->
> Stability: 1 - Experimental
@@ -254,7 +263,7 @@ The formatting process operates as follows:
fragment, `false` otherwise. Defaults to `true`.
* `search` {boolean} `true` if the serialized URL string should include the
search query, `false` otherwise. Defaults to `true`.
- * `unicode` (Boolean) `true` if Unicode characters appearing in the host
+ * `unicode` {boolean} `true` if Unicode characters appearing in the host
component of the URL string should be encoded directly as opposed to being
Punycode encoded. Defaults to `false`.
@@ -352,6 +361,9 @@ For example, the ASCII space character (`' '`) is encoded as `%20`. The ASCII
forward slash (`/`) character is encoded as `%3C`.
## The WHATWG URL API
+<!-- YAML
+added: v7.0.0
+-->
> Stability: 1 - Experimental
@@ -739,6 +751,9 @@ console.log(JSON.stringify(myURLs));
```
### Class: URLSearchParams
+<!-- YAML
+added: v7.5.0
+-->
The `URLSearchParams` API provides read and write access to the query of a
`URL`. The `URLSearchParams` class can also be used standalone with one of the
@@ -811,6 +826,9 @@ console.log(params.toString());
```
#### Constructor: new URLSearchParams(obj)
+<!-- YAML
+added: v7.10.0
+-->
* `obj` {Object} An object representing a collection of key-value pairs
@@ -834,6 +852,9 @@ console.log(params.toString());
```
#### Constructor: new URLSearchParams(iterable)
+<!-- YAML
+added: v7.10.0
+-->
* `iterable` {Iterable} An iterable object whose elements are key-value pairs
@@ -993,6 +1014,9 @@ console.log(params.toString());
```
#### urlSearchParams.sort()
+<!-- YAML
+added: v7.7.0
+-->
Sort all existing name-value pairs in-place by their names. Sorting is done
with a [stable sorting algorithm][], so relative order between name-value pairs