Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-trigger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-trigger

Listen to HTTP POST requests to trigger executions of a command

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

HTTP Trigger

Listen to HTTP POST requests to trigger executions of a command

Requires Node.js

Install

npm install (-g) http-trigger

Use

http-trigger

Configure

Available options (and default values) :

--command <COMMAND>

Command to execute on every POST request. Required argument. Environment vars are forwarded. Request body is passed via stdin. stdout and stderr are forwarded to http-trigger's ones.

--port 1515

Listen on this port.

--concurrency 3

Maximum number of parallel executions. When reached, a HTTP 429 (Too Many Requests) is sent.

--timeout 150

Timeout after which the command is killed (SIGTERM) and a HTTP 504 (Gateway Timeout) is sent.

Notes

  • The command is executed in a shell in the current directory
  • If the command fails (non-zero exit code) a HTTP 500 (Server Error) is sent.
  • If the client disconnects the command is killed (SIGTERM).

License

MIT

Keywords

FAQs

Package last updated on 21 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc