Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mike-neck/httpmon

Open more actions menu

Repository files navigation

httpmon

httpmon is a synthetic monitoring command line tool, written by golang.

usage

An example of success case.

$ httpmon --status 200 --timeout 5s https://example.com/api
ok

An example of failure case.

$ httpmon --status 200 --timeout 5s https://example.com/api
status
  expect: 200
  actual: 503
test failed: 1 failed in 1 cases

options

  • -method (-X for short) - HTTP Method supporting methods
  • -request-header - Request HTTP Header.
    • format: [header-name]=[header-value] (ex. content-type=application/json)
    • Can be specified multiple times.
  • -timeout(-t for short) - Timeout for http client
    • format: numberUNIT (ex. 5m means 5 minutes, 30s means 30 seconds)
  • -status (-s for short) - Expecting HTTP Status.
  • -response-time(-r for short) - Expecting Response time within. Format is the same as timeout.
  • -expect-header - Expecting HTTP Response header. Format is the same as request header.

supported methods

  • GET
  • POST
  • PUT
  • DELETE
  • PATCH

About

Command line synthetic monitor tool written by golang.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.