doc: add added:
information for querystring
Module introduced in 7ff04c1f8. Ref: https://github.com/nodejs/node/issues/6578 PR-URL: https://github.com/nodejs/node/pull/6593 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
4e6dc00401
commit
f773073338
@ -8,11 +8,17 @@ This module provides utilities for dealing with query strings.
|
||||
It provides the following methods:
|
||||
|
||||
## querystring.escape
|
||||
<!-- YAML
|
||||
added: v0.1.25
|
||||
-->
|
||||
|
||||
The escape function used by `querystring.stringify`,
|
||||
provided so that it could be overridden if necessary.
|
||||
|
||||
## querystring.parse(str[, sep][, eq][, options])
|
||||
<!-- YAML
|
||||
added: v0.1.25
|
||||
-->
|
||||
|
||||
Deserialize a query string to an object.
|
||||
Optionally override the default separator (`'&'`) and assignment (`'='`)
|
||||
@ -38,6 +44,9 @@ querystring.parse('w=%D6%D0%CE%C4&foo=bar', null, null,
|
||||
```
|
||||
|
||||
## querystring.stringify(obj[, sep][, eq][, options])
|
||||
<!-- YAML
|
||||
added: v0.1.25
|
||||
-->
|
||||
|
||||
Serialize an object to a query string.
|
||||
Optionally override the default separator (`'&'`) and assignment (`'='`)
|
||||
@ -63,6 +72,9 @@ querystring.stringify({ w: '中文', foo: 'bar' }, null, null,
|
||||
```
|
||||
|
||||
## querystring.unescape
|
||||
<!-- YAML
|
||||
added: v0.1.25
|
||||
-->
|
||||
|
||||
The unescape function used by `querystring.parse`,
|
||||
provided so that it could be overridden if necessary.
|
||||
|
Loading…
x
Reference in New Issue
Block a user