In VSCode, install REST Clinet Extension:
Create API_EXAMPLE.http file in root folder:
### Get mock
GET http://localhost:3000/data HTTP/1.1
### Post mock
POST http://localhost:3000/data HTTP/1.1
Content-Type: application/json
{
"name": "John Doe"
}
you can directly send request form the file, and see the result in VSCode
标签:HTTP,1.1,Extension,VSCode,REST,Client,http From: https://www.cnblogs.com/Answer1215/p/16613715.html