GoDoxy/internal/net/http
Yuzerion 1a5f3735cf
Feat/fileserver (#60)
* cleanup code for URL type

* fix makefile for trace mode

* refactor, merge Entry, RawEntry and Route into one. 

* Implement fileserver.

* refactor: rename HTTPRoute to ReverseProxyRoute to avoid confusion

* refactor: move metrics logger to middleware package

- fix prometheus metrics for load balanced routes
  - route will now fail when health monitor fail to start

* fix extra output of ls-* commands by defer initializaing stuff, speed up start time

* add test for path traversal attack, small fix on FileServer.Start method

* rename rule.on.bypass to pass

* refactor and fixed map-to-map  deserialization

* updated route loading logic

* schemas: add "add_prefix" option to modify_request middleware


* updated route JSONMarshalling

---------

Co-authored-by: yusing <yusing@6uo.me>
2025-02-06 18:23:10 +08:00
..
accesslog Feat/fileserver (#60) 2025-02-06 18:23:10 +08:00
loadbalancer Feat/fileserver (#60) 2025-02-06 18:23:10 +08:00
middleware Feat/fileserver (#60) 2025-02-06 18:23:10 +08:00
reverseproxy Feat/fileserver (#60) 2025-02-06 18:23:10 +08:00
server server side favicon retrieving and caching 2025-01-12 10:30:37 +08:00
common.go http: increase default response header timeout to 60s, add option to customize it, schema update 2025-01-30 00:41:03 +08:00
content_type.go refactor and typo fixes 2024-11-02 03:14:47 +08:00
content_type_test.go improved idlewatcher and content type matching, update CI 2024-10-07 17:41:08 +08:00
header_utils.go refactoring: moved reverse_proxy to separate package to avoid import cycle 2025-01-08 13:50:34 +08:00
methods.go rules: updated help message, make values optional, fixes tests 2025-02-06 05:13:47 +08:00
modify_response_writer.go feature: accesslogger 2024-12-18 03:09:46 +08:00
serve_mux.go naive implementation of caddy like route rules, dependencies upgrade 2025-01-08 07:18:09 +08:00
status_code.go updated implementation of rules 2025-01-08 13:50:34 +08:00