Skip to content

Instantly share code, notes, and snippets.

@sauthieg
Created September 25, 2014 08:45
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save sauthieg/17ebb198470e90e249be to your computer and use it in GitHub Desktop.
Save sauthieg/17ebb198470e90e249be to your computer and use it in GitHub Desktop.
Returns "Hello World" when `http://localhost:8080/hello` is invoked
{
"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"
}
@ViktoriaRiffel
Copy link

hbhj

@imanishmeena
Copy link

{
"heap": {
"objects": [
{
"name": "Hello",
"type": "StaticResponseHandler",
"config": {
"status": 200,
"entity": "

Hello World

"
}
}
]
},
"condition": "${matches(exchange.request.uri.path, '^/hello')}",
"handler": "Hello"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment