ginuerzh
832db16afd
chain: add HTTP header rewrite settings and HostPattern for mirror routing
...
Add HTTPHeaderRewriteSettings (regex or plugin-based header rewrite rules)
and RewriteRequestHeader/RewriteResponseHeader fields to HTTPNodeSettings.
Generalize the static Host override into a two-part mechanism:
- HostPattern: regex matched against req.URL.Path whose submatches expand
into the Host template ($1, $2, ...), restoring the upstream Host from
an encoded path (e.g. /user.github.io/x -> Host user.github.io). It only
affects the Host header, never the dial target or TLS SNI, so it targets
Host-routed origins (GitHub Pages) rather than SNI-routed ones.
- Host: static value when HostPattern is nil; replacement template when set.
2026-08-29 08:37:28 +08:00
ginuerzh
e59581b1d7
chain: add FailCodes to HTTPNodeSettings for status-based node fail marking
2026-07-25 14:36:40 +08:00
ginuerzh
3b64d634e2
chain: add node-level liveness probe types
...
Add ProbeType, ProbeConfig, ProbeResult, ProbeResultReader to core/chain.
Node gains probeResult (atomic.Value), probeCancel (context.CancelFunc),
ProbeResult(), SetProbeResult(), SetProbeCancel(), and Close() method.
2026-07-16 16:44:35 +08:00
ginuerzh
1d9cc3aabe
add HTTP request body matching for routing and node selection
...
Add Body fields to routing.Request and hop.SelectOptions, plus
MatcherBodySize on NodeOptions so handlers can expose a size-capped
request body prefix to body matchers during node selection.
2026-07-03 17:20:18 +08:00
ginuerzh
abb9fa00d6
add MaxChunkSize field to HTTPBodyRewriteSettings for bounded buffering of chunked non-streaming bodies
2026-06-30 10:59:33 +08:00
ginuerzh
271bb42fdf
add Rewriter field to HTTPBodyRewriteSettings for plugin-based rewriting
2026-06-27 22:51:05 +08:00
ginuerzh
1f04d2e2ea
docs(chain/node,observer/stats): fix doc comment formatting, clarify Stats.Reset, add RewriteRequestBody field
2026-05-31 19:32:16 +08:00
ginuerzh
3cdfea5740
Add English documentation comments to all core interfaces and types
2026-05-22 17:23:23 +08:00
ginuerzh
d7256280da
breaking change: add network param to Admission.Admit, add DialOption to Router.Dial
...
- Admission.Admit gains network parameter for network-aware access control
- Router.Dial gains variadic DialOption, matching Route.Dial and Router.Bind
- Fix typos: WithHostOption, ResolverNodeOption, ErrClosed message
- Add comprehensive README with architecture diagrams
2026-05-21 21:22:57 +08:00
ginuerzh
cb35b34792
rename HTTPNodeSettings.Header to RequestHeader
2024-11-17 16:13:36 +08:00
ginuerzh
c9850e3b30
add routing rule for node
2024-11-15 20:20:27 +08:00
ginuerzh
b6d34322d3
add response header option for HTTP node settings
2024-11-07 11:01:45 +08:00
ginuerzh
0ae0c4d4c2
add alpn option for node tls config
2024-09-23 22:05:19 +08:00
ginuerzh
2697697552
add rewrite body http node setting
2024-07-19 20:42:33 +08:00
ginuerzh
48d070d345
add router interface
2024-07-08 22:28:21 +08:00
ginuerzh
8d554ddcf7
add filter node option
2024-05-08 21:20:29 +08:00
ginuerzh
a06608ccaf
added http url rewrite setting for forwarder node
2024-01-31 23:17:24 +08:00
ginuerzh
04314fa084
added auther option for node http settings
2024-01-27 21:06:04 +08:00
ginuerzh
8e4fc06cf1
add more node options
2023-11-09 20:33:12 +08:00
ginuerzh
4525630abb
add network for node
2023-10-09 21:26:41 +08:00
ginuerzh
ff3b77ac28
add auther option for node
2023-01-31 13:37:58 +08:00
ginuerzh
1a643651c0
add new options for chain node
2023-01-29 20:45:13 +08:00
ginuerzh
8effb0b8b9
add protocol option for node
2022-11-30 10:47:27 +08:00
ginuerzh
c2a1dd2a89
add vhost for node
2022-11-11 22:21:29 +08:00
ginuerzh
41ff9835a6
add chain hop
2022-09-20 11:48:30 +08:00
ginuerzh
99adf4bb06
update selector
2022-09-04 13:22:34 +08:00
ginuerzh
7136710673
add context for selector
2022-09-02 17:23:28 +08:00
ginuerzh
2835a5d44a
add Route and Selector interfaces
2022-09-02 14:59:34 +08:00
ginuerzh
b88ab3acdc
add chain group
2022-09-02 10:54:42 +08:00
ginuerzh
04b4a79b80
add new funcs for NodeGroup
2022-08-25 21:33:41 +08:00
ginuerzh
81bf7b985a
improve chain node bypass
2022-08-24 23:12:20 +08:00
ginuerzh
7db81fcfeb
initial commit
2022-03-16 19:40:29 +08:00