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.7-055 days ago855 downloads
1.6-189 days ago(revision: 2)564 downloads
1.6-089 days ago(revision: 2)7 downloads
1.5-089 days ago(revision: 2)471 downloads
1.4-0129 days ago(revision: 2)293 downloads
1.3-0143 days ago210 downloads
1.2-0143 days ago129 downloads
1.1-0144 days ago27 downloads
1.0-0146 days ago26 downloads
0.9-0155 days ago191 downloads
0.8-0160 days ago95 downloads
0.7-0164 days ago202 downloads
0.6-0168 days ago58 downloads
0.5-0178 days ago143 downloads
0.4-0190 days ago186 downloads
0.3-0191 days ago3 downloads

Dependencies

Dependency for

Apache APISIX

Manifests