Skip to content

Examples ​

Basic example, to check google.com returns a 200 status code:

yaml
services:
  app:
    url: https://google.com
    every: 1m
    expect:
      status: 200

status code ​

Check for a 301 status code:

yaml
services:
  app:
    url: https://httpbin.org/status/301
    every: 1m
    expect:
      status: 301

max_bytes & regex ​

Check if the content of the response contains the word epazote in the first 1000 bytes:

yaml
services:
  app:
    url: https://httpbin.org/headers
    every: 1m
    max_bytes: 1000
    expect:
      status: 200
      body: epazote

Post JSON ​

yaml
---
services:
  test:
    url: https://httpbin.org/response-headers
    method: POST
    every: 1m
    body:
      json:
        message: Hello, World!
    expect:
      status: 200
      headers:
        Content-Type: application/json

Released under the BSD-3-Clause License