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-0176 days ago43,011 downloads
2.8.1-01 year ago71,842 downloads
2.8.0-01 year ago14,075 downloads
2.7.0-01 year ago12,528 downloads
2.6.1-11 year ago24,443 downloads
2.6.1-01 year ago(revision: 2)5 downloads
2.6-01 year ago11,898 downloads
2.5-01 year ago8,490 downloads
2.4-01 year ago12,898 downloads
2.3-02 years ago72 downloads
2.2-02 years ago15,163 downloads
2.1-02 years ago1,884 downloads
2.0-02 years ago7,051 downloads
1.9-02 years ago948 downloads
1.8-02 years ago7,227 downloads
1.7-02 years ago3,102 downloads
1.6-12 years ago(revision: 2)583 downloads
1.6-02 years ago(revision: 2)11 downloads
1.5-02 years ago(revision: 2)518 downloads
1.4-02 years ago(revision: 2)300 downloads
1.3-02 years ago244 downloads
1.2-02 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, edge, magic-apigw

Manifests