From 6b59e6c0e38def08925572a4baf113c4a786b7b9 Mon Sep 17 00:00:00 2001 From: Paul den Dulk Date: Thu, 24 Dec 2020 07:58:14 +0100 Subject: [PATCH] Update README.md Under usage start with 'In Visual Studio Code create a file with an .http extension'. Why: It was not clear to me what 'In the editor' meant. I only understood this after reading the 'by default .http files are like this' remark later on. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a2dccc8..db7f3d17 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ REST Client allows you to send HTTP request and view the response in Visual Stud - Fold/Unfold for request block ## Usage -In editor, type an HTTP request as simple as below: +In Visual Studio Code create a file with an `.http` extension and enter an HTTP request as simple as below: ```http https://example.com/comments/1 ``` @@ -72,7 +72,8 @@ content-type: application/json "time": "Wed, 21 Oct 2015 18:27:50 GMT" } ``` -Once you prepared a request, click the `Send Request` link above the request (this will appear if the file's language mode is `HTTP`, by default `.http` files are like this), or use shortcut `Ctrl+Alt+R`(`Cmd+Alt+R` for macOS), or right-click in the editor and then select `Send Request` in the menu, or press `F1` and then select/type `Rest Client: Send Request`, the response will be previewed in a separate __webview__ panel of Visual Studio Code. If you'd like to use the full power of searching, selecting or manipulating in Visual Studio Code, you can also preview response in __an untitled document__ by setting `rest-client.previewResponseInUntitledDocument` to `true`. Once a request is issued, the waiting spin icon will be displayed in the status bar until the response is received. You can click the spin icon to cancel the request. After that, the icon will be replaced with the total duration and response size. +Once you prepared a request, click the `Send Request` link above the request (this will appear if the file's language mode is `HTTP`, by default `.http` files are like this), or use shortcut `Ctrl+Alt+R`(`Cmd+Alt+R` for macOS), or right-click in the editor and then select `Send Request` in the menu, or press `F1` and then select/type `Rest Client: Send Request`, the response will be previewed in a separate __webview__ panel of Visual Studio +. If you'd like to use the full power of searching, selecting or manipulating in Visual Studio Code, you can also preview response in __an untitled document__ by setting `rest-client.previewResponseInUntitledDocument` to `true`. Once a request is issued, the waiting spin icon will be displayed in the status bar until the response is received. You can click the spin icon to cancel the request. After that, the icon will be replaced with the total duration and response size. You can view the breakdown of the response time when hovering over the total duration in status bar, you could view the duration details of _Socket_, _DNS_, _TCP_, _First Byte_ and _Download_.