Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8929445

Browse filesBrowse files
Fishrock123rvagg
authored andcommitted
doc: update url doc to account for escaping
Fixes: #2113 Ref: 17a379e PR-URL: #2605 Reviewed-By: jasnell - James M Snell <jasnell@gmail.com> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com> Reviewed-By: mscdex - Brian White <mscdex@mscdex.net>
1 parent 512dad6 commit 8929445
Copy full SHA for 8929445

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/url.markdown‎

Copy file name to clipboardExpand all lines: doc/api/url.markdown
+11Lines changed: 11 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
This module has utilities for URL resolution and parsing.
66
Call `require('url')` to use it.
77

8+
## URL Parsing
9+
810
Parsed URL objects have some or all of the following fields, depending on
911
whether or not they exist in the URL string. Any parts that are not in the URL
1012
string will not be in the parsed object. Examples are shown for the URL
@@ -64,6 +66,15 @@ string will not be in the parsed object. Examples are shown for the URL
6466

6567
Example: `'#hash'`
6668

69+
### Escaped Characters
70+
71+
Spaces (`' '`) and the following characters will be automatically escaped in the
72+
properties of URL objects:
73+
74+
< > " ` \r \n \t { } | \ ^ '
75+
76+
---
77+
6778
The following methods are provided by the URL module:
6879

6980
## url.parse(urlStr[, parseQueryString][, slashesDenoteHost])

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.