Output response body

This action can be used to customize static pages to respond directly to clients, thus avoiding visits upstream.

The parameters for this action are

  • Content Type: Specifies the Content Type of the response header, such as text/html, application/json. OpenResty Edge will automatically display candidates when typing in the input box.
  • Response Body: Specifies the response body.

Request Example

$ curl http://test.com/anything
<!doctype html>
  <title>OpenResty Edge</title>