旋度统计变得简单

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第三方库


热门话题
datetime如何使用JodaTime在Java中设置时间属性   java固定算法的性能时间   java如何从JMenu中获取所选项以更改文本区域的文本颜色?   java配置单元UDF传递数组<string>作为参数   javaapachebeam和BigQuery   java与PrintWriter之间的差异。printf和PrintWriter。格式方法   继承如何处理按Java版本更改的导入,以及在多个版本上编译   xml java。lang.noClassDefFoundant生成错误   java如何使用包含映射的JSON发送POST请求?   java如何在任何应用程序的JAR文件中绑定MySql数据库?   Java脚本解释器   sslhttpclientjava。网SocketException:未实现未连接的socket   java如何为Android应用程序创建类似于Cron作业的东西   java JButton+radiobox+复选框   java内存管理将文件写入内存   java这是计算对象实例的有效方法吗?   用于死锁情况的java代码?   JavaSpring容器作为新实体插入,而不是存储在表中