xixi
9d655c8944
TLS config: support passing cert and key by contents ( #49 )
...
* add RawFile
Signed-off-by: xixi <i@hexilee.me>
* add tls example
Signed-off-by: xixi <i@hexilee.me>
2022-06-21 18:38:13 +08:00
Andrewmatilde
58e7b52b6d
Update proxy method & some other listed updates. ( #10 )
...
* add http error_return ability
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* add error ignore support
Signed-off-by: Andrewmatilde <davis6813585853062@outlook.com>
* fix signal
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* minor fix
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* minor fix
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* impl too much
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix cargo workspace dependencies
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* impl todos:safe mode & safe device id selection
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* update proxy method
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* group fmt
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* minor fix on net domain
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* minor fix
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* impl much
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix duplicate code & delete update content length
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* add some unit test
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* add integration test for uds transfer
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* use async api in uds server & client
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* minor fix
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* add some integration tests
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* change trace level in uds_server
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* change trace level in uds_server
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* change trace level in uds_server
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* change trace level in uds_server
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* change trace level in uds_server
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* update dependency
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix clipper warning
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix clipper warning
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix log
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix log
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix log
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix error &log
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fmt code
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix recovery
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix bug on transfer
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix bug on transfer
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix bug on transfer
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
* fix bug on transfer
Signed-off-by: andrewmatilde <davis6813585853062@outlook.com>
2021-09-02 13:32:49 +08:00
xixi
b2208fb78c
add options for replacing or patching the body ( #12 )
...
* add update_content_length option for patching or replacing body; add TEXT option for replacing body
Signed-off-by: hexilee <i@hexilee.me>
* update examples
Signed-off-by: hexilee <i@hexilee.me>
2021-08-09 22:55:36 +08:00
xixi
924bbff2c1
change expected type of replace body to String in base64 ( #11 )
...
* change expected type of replace body to String in base64
Signed-off-by: hexilee <i@hexilee.me>
* add example for action replace body
Signed-off-by: hexilee <i@hexilee.me>
2021-08-02 13:16:46 +08:00
xixi
4da20041fb
use http over stdio to update config ( #8 )
2021-05-08 23:19:32 +08:00
xixi
8d6f32fa3c
merge request and response actions; support multiple actions ( #7 )
...
* merge request and response actions; support mutiple actions
Signed-off-by: hexilee <i@hexilee.me>
* alter config examples
Signed-off-by: hexilee <i@hexilee.me>
* resolve some conversation
Signed-off-by: hexilee <i@hexilee.me>
2021-04-16 16:58:18 +08:00
xixi
1c59c21e14
support hot reload and graceful shutdown by SIGTERM ( #6 )
...
* support graceful shutdown by sigterm
Signed-off-by: hexilee <i@hexilee.me>
* support reload configuration by stdin
Signed-off-by: hexilee <i@hexilee.me>
* set_routes/clear_routes do nothing if proxy_ports is None
Signed-off-by: hexilee <i@hexilee.me>
* add SignalHandler
Signed-off-by: hexilee <i@hexilee.me>
2021-04-12 12:45:25 +08:00
xixi
0618685fd4
reimplement http server/client by hyper ( #4 )
...
* add cargo fmt config
Signed-off-by: hexilee <i@hexilee.me>
* avoid using 'sudo' in script
Signed-off-by: hexilee <i@hexilee.me>
* refactor select_request and select_response
Signed-off-by: hexilee <i@hexilee.me>
* use hyper to handler http request
Signed-off-by: hexilee <i@hexilee.me>
* complete select request/response and apply action
Signed-off-by: hexilee <i@hexilee.me>
* add Dockerfile to debug
Signed-off-by: hexilee <i@hexilee.me>
* add tracing-futures and tracing-subscriber
Signed-off-by: hexilee <i@hexilee.me>
* init tracing_subscriber
Signed-off-by: hexilee <i@hexilee.me>
* fix clippy
Signed-off-by: hexilee <i@hexilee.me>
* add some logs
Signed-off-by: hexilee <i@hexilee.me>
* server works, but client fails
Signed-off-by: hexilee <i@hexilee.me>
* client works
Signed-off-by: hexilee <i@hexilee.me>
* update examples
Signed-off-by: hexilee <i@hexilee.me>
* rename example to config-examples
Signed-off-by: hexilee <i@hexilee.me>
* remove config modules of root
Signed-off-by: hexilee <i@hexilee.me>
* refactor config structures
Signed-off-by: hexilee <i@hexilee.me>
* set ip routes in binary
Signed-off-by: hexilee <i@hexilee.me>
* set route works
Signed-off-by: hexilee <i@hexilee.me>
* handle all errors in routes
Signed-off-by: hexilee <i@hexilee.me>
* supprot graceful shutdown by ctrl-c
Signed-off-by: hexilee <i@hexilee.me>
* support multiple ports in routes
Signed-off-by: hexilee <i@hexilee.me>
* update README
Signed-off-by: hexilee <i@hexilee.me>
* deal with thrown error from http client
Signed-off-by: hexilee <i@hexilee.me>
* support select by port
Signed-off-by: hexilee <i@hexilee.me>
* remove complete TODOS
Signed-off-by: hexilee <i@hexilee.me>
* add functions append_queries, replace_path and replace_queries for test
Signed-off-by: hexilee <i@hexilee.me>
* remove docker config
Signed-off-by: hexilee <i@hexilee.me>
* remove unnecessary target in Makefile
Signed-off-by: hexilee <i@hexilee.me>
* add some unit tests for apply_request_action; find some bugs and fix them
Signed-off-by: hexilee <i@hexilee.me>
* remove complete TODOs
Signed-off-by: hexilee <i@hexilee.me>
2021-04-06 14:29:38 +08:00