旋度统计变得简单

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)带类型的环境变量定义。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java这种src与构建树时间戳的比较如何更快?   java如何在两个命令处理程序之间通信   java下拉框值更改   Java如何从另一个类中提取字段的值   无字段名的java Jackson序列化   java游戏循环和方法调用   java Spring Security permitAll()匹配器被忽略   java如何在一个方法中将数组中的int作为单独的int传递?   使用ArrayList在Java中实现同步队列   java JButton的操作侦听器在JTable中不工作   java中C++ OOP指针的技巧   java My regex搜索只打印出最后一个匹配项   java如何在Hadoop中序列化非常大的可写对象   spring Paypal JavaSDK支付执行问题   带有SPNEGO SSO的java Tomcat 6仍会提示输入登录名和密码   java HttpResponse主体正在更改   java如何在RxJava中实现链锁   为什么我需要java。lang.ClassNotFoundException:com。mysql。希杰。jdbc。mysqlconnectorjava8时的驱动程序。0.16.jar在类路径中?   java输入错误。即使在接受新输入后仍使用旧输入