mirror of
https://github.com/go-gost/x.git
synced 2026-10-19 16:16:32 +00:00
Lets a node match routing rules against a size-capped prefix of the HTTP request body. The forwarder HTTP sniffer reads the prefix before node selection when any node in the hop opts in via matcher.bodySize (capped at MaxMatcherBodySize = 1MB), restores the stream, and passes the prefix through hop.Select to the matcher. - routing: BodyRegexp predicate; Body field on routing.Request - chain/hop: plumb Body through SelectOptions - config: matcher.bodySize on NodeFilterConfig - sniffer_http: aggregate max body size across hop nodes, read+restore - registry: NodeList wrapper forwards Nodes() so body-size is visible for named hops - bump go-gost/core to v0.5.3