上次更新到现在已经很长时间了.对不起,我迟到了。
hiproxy 2.0版本更新了很多功能细节,修复了很多问题,对代码进行了重构,重新规划、编写了自动化测试用例,也更新了一部分文档。
这需要耗费相对较多的时间,除了写代码,我业余时间还需要拍一些照片,这是我新的爱好!
hiproxy现在基本功能已经算是稳定,但是hiproxy还能做很多事情,需要继续优化的也还有很多。希望喜爱hiproxy的人能一起参与,为hiproxy做出一些贡献。
如果你愿意为hiproxy贡献一份自己的力量,请提出你的issue。
It has been a long time since the last update. Sorry, I am late.
The hiproxy 2.0 version updates a lot of feature details, fixes a lot of problems, refactors the code, re-plans, writes automated test cases, and updates some of the documentation.
This takes a relatively long time. In addition to writing code, I still need to take some photos in my spare time. This is my new hobby!
Hiproxy is now basically stable, but hiproxy can do a lot of things, and there are still many things that need to be optimized. I hope that people who love hiproxy can participate and contribute to hiproxy.
If you are willing to contribute a power to hiproxy, please submit your issue.
- Support multiple hiproxy certificates for the same device, see #57.
- Support plugins installed by yarn, see #53 增加yarn全局插件检测.
- Support
onError()
callback. - Support
onBeforeRequest()
callback. - Support
onData()
callback. - Support
onBeforeResponse()
callback; - Add
addCallback()
api for hiproxy. - Ignore duplicate hosts rules(TODO ? keep this or remove it? #b3d0a3bfa9c47565e9ab37e5ba1fcaf247fe546e).
- Add default
Host
header. - The
send_file
directive now sendContent-Type
header. - The
proxy_append_body
directive now will auto detectJSON
andform
data. - The
proxy_replace_body
directive now support flagigm
. - Add new directive
proxy_timeout timeout
. - Add direcitive
sub_filter_last_modified on|off
. - Add directive
sub_filter_types types
. - Add directive
sub_filter_once on|off
. - hiproxy home page use https://hi.proxy/.
- Fix #59 haeder设置重复.
- Fix: Empty rewrite file error when starting hiproxy.
- Fix: hosts domain https request error.
- Fix: content by echo directive has no proxy log.
- Fix: hiproxy home page charset.
- Fix: file upload and Non-text file damaged.
- Fix: windows 7 hosts parse error.
- Update hiproxy log prefix label.
- CLI add
--error
/--warn
/--detail
/--debug
opts, and remove--log-level
opt. - Update event params format, user object instead.
res.headers
now can get values setted byres.setHeader()
.- The validity period of the certificate is changed from 1 year to 5 years.
- fix bug #45.
-
Add new request directives:
- proxy-method : set the request method.
- proxy-set-body : set the request body content.
- proxy-append-body : append content to the body.
- proxy-replace-body : replace part of the body.
-
Add new response directives:
- status : Set the response status code and status message.
-
Add more test case.
- Support for automatic selection of available port numbers when creating services. See API for more details.
- Add more test case.
- Add
requestend
event. - Add
requestId
and_startTime
for CONNECT request. - Start HTTPS service by default.
- Auto find config file from current dir.
- Add current config files log.
- fix(command/start): can't found cli.js module on daemon mode #43
Thanks to raccoon-lee
- Fixbug: window下无法创建名为*.xx.xx的证书 #40
- Fix plugin name for windows.
- Fix
hosts proxy
log error
- Directive can return promise or non-promise value now
- Add
clearFiles()
api forhiproxyServer.hosts
andhiproxyServer.rewrite
- Add
addRule()
api for hiproxy server instance - Support custom
hosts
andrewrite
snippets - Add
hiproxy
global variable - Add
dataProvider
module for plugins
- change proxy log format
- Fix
alias
directive proxy log - Change some log color from 'blue' to 'cyan'
- Domain block support multiple domain
- Fix error on windows
- Fix sub-command tips in help info
- Add
requestId
for each request - Show doc site url in
hiproxy
cmd and show new issue url in error msg
- Response
data
event not emitted when use gzip
- Change Hiproxy_Custom_CA_Certificate ext from pem to crt
- Add sub-command tips in help info
- Plugins load error message has
undefined
- add
hiproxy init
CLI command - Use
Hiproxy Custom CA
root certificate to issuelocalhost
certificate
send_file
directive bug
- Regular expressions can omit the first
/
and last/
- Update proxy log format
- Use a more powerful syntax parser, and support main syntax error hints
- Add built-in variable
$base_name
and$dir_name
- Add built-in API
enableConfFile
anddisableConfFile
- Response 404 when use
alias
and the request has query string.