VSCode插件 REST Client

快捷键
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"
    }
  }
}

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页