mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-07 19:29:19 +00:00
16 lines
311 B
JavaScript
Executable File
16 lines
311 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const os = require('os')
|
|
|
|
// Usage: http POST :8080/examples/echo.js msg==hello foo=bar
|
|
|
|
console.log("Echo script:")
|
|
|
|
console.log("Hostname=", os.hostname())
|
|
|
|
console.log("User-Agent=", process.env["user_agent"])
|
|
|
|
console.log("msg=", process.env["msg"])
|
|
|
|
console.log("body=", process.argv)
|