HTTP路由器

hroute的Python项目详细描述


hroute
----

基于“tproxy<;http://github.com/benoitc/tproxy>;”的简单http代理。

功能
+++++-而对于“gevent<;http://gevent.org>;``gevent<;http://code.google.com/p/py-setproctitle/>;```setproctitle<;http://code.google.com/p/py-setproctitle/>;`1.1.2
-`tproxy<;http://github.com/benoitc/http parser>;```gevent>;=0.5.2
-`http parser<;http://github.com/benoitc/benoitc/http parser>;``gevent>;``gevent>;=0.5.2
-`http://.3
-`lxml<;http://lxml.de>;`

安装
----

::

$pip install hroute


usage
----

设置
以下配置::

{
“all”:{
“routes”:{
“/”:{
“remote”:“benoitc.io:80”,
“rewrite_response”:true
},
“/local”:{
“remote”:“127.0.0.1:8000”
},
“/google”:{
“remote”:“google.com:80”
},
“/gunicorn”:{
“remote”:“gunicorn.org:80”,
“rewrite_response”:true
},
“/googles”:{
“remote”:“encrypted.google.com:443”,
“ssl”:true,
“重写响应”:true
}
}
}
}
}




,然后启动hroute::

$hroute-s/tmp-w 3


,继续“http://127.0.0.1:5000/gunicorn
<;http://127.0.0.1:5000/gunicorn>;`。你很快就会看到gunicorn.org网站的更多功能。

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

推荐PyPI第三方库


热门话题
如何使用外部java程序在minecraft中移动minecraft角色的相机   java输出文本文件中的变量   java LazyLoadingException在我尝试从多通关系获取对象时出现   java json rest API的错误:ClassCastException:org。json。无法将JSONObject强制转换为组织。json。杰索纳雷   java BigInteger。C中的intValue()等价物#   java大写所有字符,但不包括带引号字符串中的字符   java获取特殊字符   javascript为什么Selenium中的所有getX()调用都需要这么长时间?   rabbitmq rabbitmq java客户端并行消费   如何使用selenium Java在popover窗口中提取文本   对象在java中构造一类对象   java Room数据库未实现   json JSONObject可以使用java保存大的格式化双值吗?   有时限的旅行推销员   java HttpsURLConnection openConnection查询   java无法使用Spring@Entity注释创建MySQL表   lambda Java 8仅映射到值类型集合   java提供OSGi服务而不实现接口   java单个对象重写对象数组,不确定原因