Skip to content

hello

hello returns a static or templated response and does not call the next middleware. It is useful for health checks, mock endpoints, and simple HTML pages.

yaml
server:
  http:
    middlewares:
      health:
        hello:
          message: OK
          status_code: 200
          content_type: text/plain; charset=utf-8
          headers:
            Cache-Control: no-store

Fields

FieldDefaultDescription
messageOKResponse body or template.
status_code200Response status.
headersResponse headers.
content_typetext/plain; charset=utf-8Response content type.
templatefalseRender message as a template.
trustfalseEnable powerful template functions.
work_dirWorking directory for template functions that need one.
delims[', ']Two custom template delimiters.

Template data includes body, method, headers, query_params, cookies, path, host, scheme, and remote_addr.