Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Lewis <DerekNonGeneric@inf.is>2020-06-08 00:21:45 +0300
committerRich Trott <rtrott@gmail.com>2020-07-03 02:32:42 +0300
commit1dc837ed9a139eaf86d7929e9bee6f0021fc5a3d (patch)
tree0b59140f1a72375e7ac09f945da8452b7012c4aa /doc/api/http.md
parent1aa847f7438407b78cc0d1f9eab96adcfe9ff9df (diff)
doc: add http highlight grammar
Prior to this commit, http request message code blocks in Markdown files were not being highlighted correctly. This has been corrected by adding the new grammar to the bundle, removing the CRLFs (`\r\n`) from these code samples, adding a reminder to re-add them, and tuning the syntax theme to support attribute highlighting. PR-URL: https://github.com/nodejs/node/pull/33785 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc/api/http.md')
-rw-r--r--doc/api/http.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/http.md b/doc/api/http.md
index 5429bdb297c..fd37d073bff 100644
--- a/doc/api/http.md
+++ b/doc/api/http.md
@@ -2093,13 +2093,13 @@ added: v0.1.90
**Only valid for request obtained from [`http.Server`][].**
-Request URL string. This contains only the URL that is
-present in the actual HTTP request. If the request is:
+Request URL string. This contains only the URL that is present in the actual
+HTTP request. If the request is (remember, each header line ends with `\r\n`
+plus a final `\r\n` after the last one indicating the end of the header):
```http
-GET /status?name=ryan HTTP/1.1\r\n
-Accept: text/plain\r\n
-\r\n
+GET /status?name=ryan HTTP/1.1
+Accept: text/plain
```
To parse the URL into its parts: