Skip to content

Instantly share code, notes, and snippets.

@sauthieg
Created September 25, 2014 08:45

Revisions

  1. sauthieg created this gist Sep 25, 2014.
    16 changes: 16 additions & 0 deletions hello-world.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    {
    "heap": {
    "objects": [
    {
    "name": "Hello",
    "type": "StaticResponseHandler",
    "config": {
    "status": 200,
    "entity": "<html><body><h1>Hello World</h1></body></html>"
    }
    }
    ]
    },
    "condition": "${matches(exchange.request.uri.path, '^/hello')}",
    "handler": "Hello"
    }