@maxdome/health-got

1.1.1 • Public • Published

Provides check function for health performing HTTP requests.

Usage

app.get('/health', require('@maxdome/health').controller({
  example: require('@maxdome/health-got')('http://example.com/'),
}));

Example response

{
  "example": {
    "method": "GET",
    "options": {
      "json": true
    },
    "status": "UP",
    "url": "http://example.com/"
  },
  "status": "UP"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @maxdome/health-got

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

2.08 kB

Total Files

4

Last publish

Collaborators

  • dragonnodejs
  • sharaal
  • fabsrc
  • markusz
  • mxdbv
  • csaba.lorincz
  • goexrock
  • dimified