https://github.com/drowzy/helay
https://github.com/drowzy/helay
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/drowzy/helay
- Owner: drowzy
- Created: 2018-03-09T20:31:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-13T10:11:08.000Z (about 8 years ago)
- Last Synced: 2025-02-16T11:14:09.614Z (over 1 year ago)
- Language: Elixir
- Size: 107 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Helay
[](https://travis-ci.org/drowzy/helay)
Webhook relay
## Middlewares
* `jq` - Apply [jq](https://stedolan.github.io/jq/) transforms on data
* `http` - Send HTTP requests
* `console` - Default transforms, logs to stdout
* `file` - Write output to a provided file
## Templating
### Examples
```json
POST http://localhost:4001/middlewares
{
"endpoint": "/hook",
"transforms": [
{
"type": "http",
"args": {
"method": "POST",
"uri": "https://httpbin.org/post",
"headers": {
"Content-Type": "application/json"
},
"body": {
"hello": "world"
}
}
},
{
"type": "jq",
"args": "'{foo: .json}'"
},
{
"type": "file",
"args": {
"path": "/home/helay/file.json"
}
}
]
}
```