快捷鍵
Win: Ctrl+Alt+R
macOS: Cmd+Alt+R
文檔:
https://marketplace.visualstudio.com/items?itemName=humao.rest-client請求檔案
test.http
GET https://www.baidu.com/
###
GET https://httpbin.org/get
###
POST {{host}}/post
content-type: application/json
{
"name": "sample",
"time": "Wed, 21 Oct 2015 18:27:50 GMT"
}
環境變量
.
vscode/settings.json
{
"rest-client.environmentVariables": {
"$shared": {
"host": "https://httpbin.org"
},
"local": {
"host": "https://httpbin.org"
},
"production": {
"host": "https://httpbin.org"
}
}
}