旋度统计变得简单
httpstat的Python项目详细描述
#httpstat
![截图](screenshot.png)
它是一个**单文件**python脚本,没有依赖关系**,与**python 3**兼容。
直接:`wget https://raw.gitubuusercontent.com/reorx/httpstatstat/master/httpstatstat.py`
-通过pip:`pip install httpstat`
>
-通过自制(仅限MacOS操作系统):`brew install httpstat`
``bash
python httpstat.pyhttpstat.py httpbin.org/get
简单:
``bash
python httpstat.pyttpstat.pyhttpstat.pyhttpbin.pyhttpbin
如果通过PIP或Brew安装,则可以使用“httpstat”作为命令:
```bash
httpstat httpbin.org/get
````
`-已经被“httpstat”使用的S):httpstat httpbin.org/post-X post--data urlencode“a=b”-v
`````
下面是一些用法演示,您还可以运行“httpstat--help”查看完整解释。
<;details>;
<;summary>;
设置为“true”以在输出中显示响应体,请注意,body length
限制为1023字节,将被截断如果超过。默认值为“false”。
<;details>;
<;details>;
<;summary>;<;strong>;<;code>;httpstat显示IP<;code>;<;strong>;<;summary>;
默认情况下,httpstat显示远程和本地IP/端口地址。
设置为“false”可禁用此功能。默认值为“true”。
<;details>;
<;details>;
<;summary>;<;strong>;<;code>;httpstat显示速度<;code>;<;/strong>;<;summary>;
设置为“true”以显示下载和上载速度。默认值为“false”。
``bash
httpstat-show-httpstat-show-speed=true-httpstat-http://cachefly.cacheflfly.net/10mb.test
…
>>
>
>
>
>
> ><;详细信息>;
>>
>>
><;总结>;lt;strong>;lt;code>;lt;gt;lt;gt;lt;gt;gt;lt;gt;lt;gt;lt;gt;lt;gt;lt;lt;lt;lt;lt;httpstat_save_body<;/代码>;<;/强>;<;/summary>;
设置为“false”以禁用此功能。默认值为“true”
<;/details>;
<;details>;
<;summary>;<;strong>;<;code>;httpstat\u curl\u bin<;/code>;<;/strong>;<;/summary>;
指示要使用的curl bin路径。默认值是来自当前shell$path的“curl”。
此example使用安装了brew的curl发出http2请求:
``bash
httpstat_curl_bin=/usr/local/cell/curl/7.50.3/bin/curl httpstat https://http2.akamai.com/--http2
http/2200
…
````
>;curl必须与nghttp2一起编译,才能启用http2功能
>;([12](https://github.com/reorx/httpstat/issues/12))。
<;details>;
<;details>;
<;summary>;<;strong>;<;code>;httpstat调试<;/code>;<;summary>;
设置为“true”以查看调试日志。默认值是“false”
<;/details>;
-节点:[yosuke furukawa/httpstat](https://github.com/yosuke furukawa/httpstat)
[b4b4r07](https://twitter.com/b4b4r07)在其[文章](http://www.tellme.tokyo/entry/2016/09/25/213810)中提到了这一点,也可以用作http客户端。
-go:[davecheney/httpstat](http s://github.com/davecheney/httpstat)
非常周到和有用,请参阅本[文章](https://medium.com/@deeet/tracing-http-request-latency-in-golang-65b2463f548c.mm1u8kfu)
-php:[talhasch/php-httpstat](https://github.com/talhasch/php-httpstat)
我的,看看:
-[reorx/python terminal color](https://github.com/reorx/python-terminal-color)用于打印终端颜色的单个文件库。
-[reorx/getenv](https://github.com/reorx/getenv)带类型的环境变量定义。
![截图](screenshot.png)
它是一个**单文件**python脚本,没有依赖关系**,与**python 3**兼容。
直接:`wget https://raw.gitubuusercontent.com/reorx/httpstatstat/master/httpstatstat.py`
-通过pip:`pip install httpstat`
>
-通过自制(仅限MacOS操作系统):`brew install httpstat`
``bash
python httpstat.pyhttpstat.py httpbin.org/get
简单:
``bash
python httpstat.pyttpstat.pyhttpstat.pyhttpbin.pyhttpbin
如果通过PIP或Brew安装,则可以使用“httpstat”作为命令:
```bash
httpstat httpbin.org/get
````
`-已经被“httpstat”使用的S):httpstat httpbin.org/post-X post--data urlencode“a=b”-v
`````
下面是一些用法演示,您还可以运行“httpstat--help”查看完整解释。
<;details>;
<;summary>;
设置为“true”以在输出中显示响应体,请注意,body length
限制为1023字节,将被截断如果超过。默认值为“false”。
<;details>;
<;details>;
<;summary>;<;strong>;<;code>;httpstat显示IP<;code>;<;strong>;<;summary>;
默认情况下,httpstat显示远程和本地IP/端口地址。
设置为“false”可禁用此功能。默认值为“true”。
<;details>;
<;details>;
<;summary>;<;strong>;<;code>;httpstat显示速度<;code>;<;/strong>;<;summary>;
设置为“true”以显示下载和上载速度。默认值为“false”。
``bash
httpstat-show-httpstat-show-speed=true-httpstat-http://cachefly.cacheflfly.net/10mb.test
…
>>
>
>
>
>
>
>>
>>
><;总结>;lt;strong>;lt;code>;lt;gt;lt;gt;lt;gt;gt;lt;gt;lt;gt;lt;gt;lt;gt;lt;lt;lt;lt;lt;httpstat_save_body<;/代码>;<;/强>;<;/summary>;
<;/details>;
<;details>;
<;summary>;<;strong>;<;code>;httpstat\u curl\u bin<;/code>;<;/strong>;<;/summary>;
指示要使用的curl bin路径。默认值是来自当前shell$path的“curl”。
此example使用安装了brew的curl发出http2请求:
``bash
httpstat_curl_bin=/usr/local/cell/curl/7.50.3/bin/curl httpstat https://http2.akamai.com/--http2
http/2200
…
````
>;curl必须与nghttp2一起编译,才能启用http2功能
>;([12](https://github.com/reorx/httpstat/issues/12))。
<;details>;
<;details>;
<;summary>;<;strong>;<;code>;httpstat调试<;/code>;<;summary>;
设置为“true”以查看调试日志。默认值是“false”
<;/details>;
-节点:[yosuke furukawa/httpstat](https://github.com/yosuke furukawa/httpstat)
[b4b4r07](https://twitter.com/b4b4r07)在其[文章](http://www.tellme.tokyo/entry/2016/09/25/213810)中提到了这一点,也可以用作http客户端。
-go:[davecheney/httpstat](http s://github.com/davecheney/httpstat)
非常周到和有用,请参阅本[文章](https://medium.com/@deeet/tracing-http-request-latency-in-golang-65b2463f548c.mm1u8kfu)
-php:[talhasch/php-httpstat](https://github.com/talhasch/php-httpstat)
我的,看看:
-[reorx/python terminal color](https://github.com/reorx/python-terminal-color)用于打印终端颜色的单个文件库。
-[reorx/getenv](https://github.com/reorx/getenv)带类型的环境变量定义。