Giter Site home page Giter Site logo

Comments (3)

reorx avatar reorx commented on May 4, 2024 1

Glad to know it helps, and in case you need, I just released a new version to add the metrics only output ability. If you add environment variable HTTPSTAT_METRICS_ONLY=true for httpstat, it will only output json format metrics for easier parsing:

❯ HTTPSTAT_METRICS_ONLY=true httpstat https://reorx.com
{
  "time_namelookup": 520,
  "time_connect": 528,
  "time_appconnect": 1311,
  "time_pretransfer": 1311,
  "time_redirect": 0,
  "time_starttransfer": 1419,
  "time_total": 1419,
  "speed_download": 2901.0,
  "speed_upload": 0.0,
  "remote_ip": "172.104.82.25",
  "remote_port": "443",
  "local_ip": "192.168.50.125",
  "local_port": "63096",
  "range_dns": 520,
  "range_connection": 8,
  "range_ssl": 783,
  "range_server": 108,
  "range_transfer": 0
}

from httpstat.

reorx avatar reorx commented on May 4, 2024

It is possible to use curl's timout option -m, --max-time after the URL parameter, like this:

❯ httpstat http://web.localhost:20443/wait -m 2
> curl -w <output-format> -D <tempfile> -o <tempfile> -s -S -m 2 http://web.localhost:20443/wait
curl error: curl: (28) Operation timed out after 2000 milliseconds with 0 bytes received

but curl returns non-zero code when timeout, thus httpstat cannot show the stat result. Is it helpful to your situation?

from httpstat.

atibdialpad avatar atibdialpad commented on May 4, 2024

awesome. Yeah that helps.

from httpstat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.