-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.http
More file actions
51 lines (39 loc) · 946 Bytes
/
request.http
File metadata and controls
51 lines (39 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Restclient requests for examples/woo-application.lisp
# Start the app first:
# sbcl --load examples/woo-application.lisp
# restclient variable syntax
:base = http://localhost:3000
# Index
GET :base/
#
# Health
GET :base/health
#
# Users (JSON)
GET :base/api/v1/users
#
# Echo (form-urlencoded)
POST :base/api/v1/echo
Content-Type: application/x-www-form-urlencoded
name=wst&lang=lisp
#
# Cookies parsing
GET :base/api/v1/cookies
Cookie: first=one; second=two
#
# Fallback any-route
GET :base/does-not-exist
#
# Rate-limit demo (X-Forwarded-For is used as the limiter key)
# Run this request several times quickly to get 429.
GET :base/api/v1/flaky
X-Forwarded-For: 198.51.100.10
#
# Circuit-breaker demo:
# Run the first two requests with fail=true to trigger failures, then
# run the third request to observe the open-circuit response.
GET :base/api/v1/flaky?fail=true
#
GET :base/api/v1/flaky?fail=true
#
GET :base/api/v1/flaky