Skip to content

Commit

Permalink
Release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Huachao committed Jun 16, 2016
1 parent 12cc54f commit 9dcaf81
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

REST Client allows you to send HTTP request and view the response in Visual Studio Code directly.

## Features
* Send __HTTP request__ in editor and view response in a separate pane with syntax highlight
* Send __CURL command__ in editor
* View request history
* Code snippets for operations like `GET` and `POST`
* Add HTTP language support, together with syntax highlight

## Usage
In editor, type a HTTP request as simple as below:
```
Expand Down Expand Up @@ -72,6 +79,15 @@ We add the capability to directly run [curl request](https://curl.haxx.se/) in R
![request-history](images/request-history.png)
Each time we sent a http request, the request details(method, url, headers and body) would be persisted into file. By using shortcut `Ctrl+Alt+H`, or press `F1` and then select/type `Rest Client: Request History`, you can view the last __50__ request items in the time reversing order, you can select any request you wish to trigger again. After specified request history item is selected, the request details would be displayed in a temp file, you can view the request details or follow previous step to trigger the request again.

## HTTP Language
Add language support for HTTP request, with this feature, you can have syntax highlight when writing HTTP request in Visual Studio Code. By default, the language association will be automatically activated in two cases:
1. File with extension `.http` and `.rest`
2. First line of file follows standard request line in [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html), with `Method SP Request-URI SP HTTP-Version` format

If you want to enable language association in other cases, just change the language mode to `HTTP`.

![HTTP Language](images/http.png)

## Settings
* `rest-client.clearoutput`: Clear previous output for each request. (Default is __false__)
* `rest-client.followredirect`: Follow HTTP 3xx responses as redirects. (Default is __true__)
Expand All @@ -82,6 +98,10 @@ Each time we sent a http request, the request details(method, url, headers and b
[MIT License](LICENSE)

## Change Log
### 0.5.0
* Add HTTP language and syntax highlight
* Add `.http` and `.rest` file extension associations with HTTP language

### 0.4.0
* Add capability to directly run [curl request](https://curl.haxx.se/)

Expand Down
Binary file added images/http.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rest-client",
"displayName": "REST Client",
"description": "REST Client for Visual Studio Code",
"version": "0.4.0",
"version": "0.5.0",
"publisher": "humao",
"author": {
"name": "Huachao Mao",
Expand Down

0 comments on commit 9dcaf81

Please sign in to comment.