postwoman/postwoman.toml

50 lines
986 B
TOML
Raw Normal View History

2024-10-19 04:12:46 +02:00
[client]
2024-10-19 04:13:42 +02:00
user_agent = "postwoman@sample/0.2.0"
[env]
PW_TOKEN = "set-me-as-and-environment-variable!"
2024-10-19 04:13:42 +02:00
[route.healthcheck]
url = "https://api.alemi.dev/"
2024-10-19 04:12:46 +02:00
[route.benchmark]
url = "https://api.alemi.dev/look/into/the/void"
extract = { type = "discard" }
2024-10-19 22:02:05 +02:00
[route.notfound]
url = "https://api.alemi.dev/not-found"
expect = 404
extract = { type = "regex", pattern = 'nginx/[0-9\.]+' }
2024-10-19 22:02:05 +02:00
2024-10-19 04:12:46 +02:00
[route.debug]
url = "https://api.alemi.dev/debug"
method = "PUT"
headers = [
"Content-Type: application/json",
"Authorization: Bearer ${PW_TOKEN}",
]
2024-10-19 19:24:12 +02:00
query = [
"body=json",
"cache=0"
]
2024-10-19 04:12:46 +02:00
body = { hello = "world!", success = true }
extract = { type = "jql", query = ".path" }
2024-10-19 04:12:46 +02:00
2024-10-19 04:13:42 +02:00
[route.payload]
url = "https://api.alemi.dev/debug"
method = "POST"
body = '''{
"complex": {
"json": "payloads",
"can": "be",
"expressed": "this",
"way": true
}
}'''
extract = { type = "body" }
2024-10-19 04:12:46 +02:00
[route.cookie]
url = "https://api.alemi.dev/getcookie"
method = "GET"
extract = { type = "header", key = "Set-Cookie" }