Browse Source

doc: add `added:` information for url

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>
process-exit-stdio-flushing
Bryan English 9 years ago
committed by Anna Henningsen
parent
commit
43e4bafcaf
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 9
      doc/api/url.md

9
doc/api/url.md

@ -80,6 +80,9 @@ properties of URL objects:
The following methods are provided by the URL module: The following methods are provided by the URL module:
## url.format(urlObj) ## url.format(urlObj)
<!-- YAML
added: v0.1.25
-->
Take a parsed URL object, and return a formatted URL string. Take a parsed URL object, and return a formatted URL string.
@ -106,6 +109,9 @@ Here's how the formatting process works:
* `hash` is treated the same with or without the leading `#` (pound sign, anchor). * `hash` is treated the same with or without the leading `#` (pound sign, anchor).
## url.parse(urlStr[, parseQueryString][, slashesDenoteHost]) ## url.parse(urlStr[, parseQueryString][, slashesDenoteHost])
<!-- YAML
added: v0.1.25
-->
Take a URL string, and return an object. Take a URL string, and return an object.
@ -120,6 +126,9 @@ Pass `true` as the third argument to treat `//foo/bar` as
`{ pathname: '//foo/bar' }`. Defaults to `false`. `{ pathname: '//foo/bar' }`. Defaults to `false`.
## url.resolve(from, to) ## url.resolve(from, to)
<!-- YAML
added: v0.1.25
-->
Take a base URL, and a href URL, and resolve them as a browser would for Take a base URL, and a href URL, and resolve them as a browser would for
an anchor tag. Examples: an anchor tag. Examples:

Loading…
Cancel
Save