lua-resty-radixtree

This is a radixtree implementation base on FFI for Lua-Openresty

$ luarocks install lua-resty-radixtree

local radix = require("resty.radixtree")
local rx = radix.new({
{
path = "/aa",
metadata = "metadata /aa",
host = "foo.com",
method = {"GET", "POST"},
remote_addr = "127.0.0.1",
},
{
path = "/bb*",
metadata = "metadata /bb",
host = {"*.bar.com", "gloo.com"},
method = {"GET", "POST", "PUT"},
remote_addr = {"fe80:fe80::/64", "127.0.0.1"},
}
})

-- should hit
ngx.say(rx:match("/aa", {host = "foo.com",
method = "GET",
remote_addr = "127.0.0.1"}))

Versions

2.8.2-0239 days ago53,473 downloads
2.8.1-01 year ago73,386 downloads
2.8.0-01 year ago14,245 downloads
2.7.0-01 year ago12,528 downloads
2.6.1-11 year ago24,462 downloads
2.6.1-01 year ago(revision: 2)5 downloads
2.6-01 year ago11,945 downloads
2.5-01 year ago8,503 downloads
2.4-02 years ago12,898 downloads
2.3-02 years ago72 downloads
2.2-02 years ago15,196 downloads
2.1-02 years ago1,884 downloads
2.0-02 years ago7,056 downloads
1.9-02 years ago949 downloads
1.8-02 years ago7,239 downloads
1.7-02 years ago3,106 downloads
1.6-13 years ago(revision: 2)586 downloads
1.6-03 years ago(revision: 2)11 downloads
1.5-03 years ago(revision: 2)518 downloads
1.4-03 years ago(revision: 2)300 downloads
1.3-03 years ago244 downloads
1.2-03 years ago135 downloads
1.1-03 years ago32 downloads
1.0-03 years ago30 downloads
0.9-03 years ago196 downloads
0.8-03 years ago99 downloads
0.7-03 years ago208 downloads
0.6-03 years ago62 downloads
0.5-03 years ago147 downloads
0.4-03 years ago316 downloads
0.3-03 years ago7 downloads

Dependencies

Dependency for

amber-apigw, Apache APISIX, digiprime-jwt, digiprime-jwt, edge, magic-apigw

Manifests