controlio-check-http

0.0.4 • Public • Published

controlio-check-http

A check module for controlio.

Description

Requsts a HTTP/HTTPS URL and checks the HTTP status code.

Options

  • hostname: Use this if the URL is simply 'http://HOSTNAME/'. If not defined, hostname is read from the host configuration, and defaults to localhost
  • url: Alternatively set the full URL with this option. If not set, defaults to 'http://HOSTNAME/'
  • status: The HTTP status code to expect. Defaults to 200.

TODO

  • domain is used to catch errors from http. According to the documentation this is a bad idea. Fix it.

Readme

Keywords

none

Package Sidebar

Install

npm i controlio-check-http

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • lasar