mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 03:33:36 -04:00
Some use cases benefit from reversing a string before passing it to other converters or lookups. While reverse_dom addresses domain-specific label reversal, a generic byte-wise string reversal remains useful on its own and can also be combined with other converters such as concat(). A common lookup use case is turning a suffix match on the original string into a prefix match on the reversed string. Prefix string matches use the prefix-tree index (PAT_MATCH_BEG with pat_idx_tree_pfx), while end matches use the string-list index (PAT_MATCH_END with pat_idx_list_str), so reversing before map_beg can avoid linear suffix scans for large maps. This patch adds a new string converter named "reverse". It reverses the input string byte by byte and returns the resulting string unchanged otherwise. It does not apply any domain-specific semantics or character-encoding semantics. The documentation is updated and a reg-test is added to cover the basic conversion as well as a simple composition with concat(.). |
||
|---|---|---|
| .. | ||
| design-thoughts | ||
| internals | ||
| lua-api | ||
| 51Degrees-device-detection.txt | ||
| acl.fig | ||
| coding-style.txt | ||
| configuration.txt | ||
| cookie-options.txt | ||
| DeviceAtlas-device-detection.txt | ||
| gpl.txt | ||
| haproxy.1 | ||
| HAProxyCommunityEdition_60px.png | ||
| haterm.txt | ||
| intro.txt | ||
| lgpl.txt | ||
| linux-syn-cookies.txt | ||
| lua.txt | ||
| management.txt | ||
| netscaler-client-ip-insertion-protocol.txt | ||
| network-namespaces.txt | ||
| peers-v2.0.txt | ||
| peers.txt | ||
| proxy-protocol.txt | ||
| queuing.fig | ||
| regression-testing.txt | ||
| seamless_reload.txt | ||
| SOCKS4.protocol.txt | ||
| SPOE.txt | ||
| WURFL-device-detection.txt | ||