aboutsummaryrefslogtreecommitdiff
path: root/_examples/simple/test.http
blob: 6efd3420dec3b28611cb94c7b096b23a44be366e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
### Request JSON:
http://localhost:3000/hello
Content-Type: application/json

{
  "name": "Alex"
}

### Response:
# http://localhost:3000/hello
#
#{"message":"Hello, Alex!"}

### Request Form:
http://localhost:3000/hello
Content-Type: application/x-www-form-urlencoded

name=Alex

### Response:
# http://localhost:3000/hello
#
#{"message":"Hello, Alex!"}