controlio-check-http

controlio module for checking URLs

Usage no npm install needed!

<script type="module">
  import controlioCheckHttp from 'https://cdn.skypack.dev/controlio-check-http';
</script>

README

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.