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

1.4-011 days ago86 downloads
1.3-025 days ago147 downloads
1.2-025 days ago106 downloads
1.1-026 days ago27 downloads
1.0-028 days ago26 downloads
0.9-037 days ago191 downloads
0.8-042 days ago95 downloads
0.7-046 days ago200 downloads
0.6-050 days ago58 downloads
0.5-060 days ago143 downloads
0.4-072 days ago181 downloads
0.3-073 days ago3 downloads

Dependencies

Dependency for

apisix, apisix-dev

Manifests