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-046 days ago10,487 downloads
2.8.1-0313 days ago66,395 downloads
2.8.0-01 year ago13,464 downloads
2.7.0-01 year ago12,504 downloads
2.6.1-11 year ago24,395 downloads
2.6.1-01 year ago(revision: 2)4 downloads
2.6-01 year ago11,850 downloads
2.5-01 year ago8,448 downloads
2.4-01 year ago12,892 downloads
2.3-01 year ago71 downloads
2.2-01 year ago15,141 downloads
2.1-01 year ago1,883 downloads
2.0-01 year ago7,037 downloads
1.9-01 year ago942 downloads
1.8-02 years ago7,211 downloads
1.7-02 years ago3,096 downloads
1.6-12 years ago(revision: 2)582 downloads
1.6-02 years ago(revision: 2)10 downloads
1.5-02 years ago(revision: 2)517 downloads
1.4-02 years ago(revision: 2)299 downloads
1.3-02 years ago243 downloads
1.2-02 years ago134 downloads
1.1-02 years ago31 downloads
1.0-02 years ago29 downloads
0.9-02 years ago195 downloads
0.8-02 years ago98 downloads
0.7-02 years ago207 downloads
0.6-02 years ago61 downloads
0.5-02 years ago146 downloads
0.4-02 years ago315 downloads
0.3-02 years ago6 downloads

Dependencies

Dependency for

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

Manifests