From 3efb569478650ef4e142ca2f6e620cad37b47ba7 Mon Sep 17 00:00:00 2001 From: Tadao Iseki Date: Sun, 8 Dec 2019 09:13:28 +0900 Subject: [PATCH] doc: wrap message.url description at 80 characters Wrapped at 80 characters and refactored. Fixes: #30048 Refs: https://github.com/nodejs/node/pull/30830 --- doc/api/http.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 679863790712d2..84a2d2bdc37fa2 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1973,13 +1973,14 @@ Accept: text/plain\r\n \r\n ``` -To parse the url into its parts The WHATWG URL API can be used: +To parse the URL into its parts: ```js new URL(request.url, `http://${request.headers.host}`); ``` -When `request.url` is `'/status?name=ryan'` and `request.headers.host` is `'localhost:3000'`: +When `request.url` is `'/status?name=ryan'` and +`request.headers.host` is `'localhost:3000'`: ```console $ node