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.6-125 days ago(revision: 2)405 downloads
1.6-025 days ago(revision: 2)7 downloads
1.5-025 days ago(revision: 2)332 downloads
1.4-065 days ago(revision: 2)292 downloads
1.3-079 days ago206 downloads
1.2-079 days ago129 downloads
1.1-080 days ago27 downloads
1.0-082 days ago26 downloads
0.9-091 days ago191 downloads
0.8-096 days ago95 downloads
0.7-0100 days ago201 downloads
0.6-0104 days ago58 downloads
0.5-0114 days ago143 downloads
0.4-0126 days ago186 downloads
0.3-0127 days ago3 downloads

Dependencies

Dependency for

apisix, apisix-dev

Manifests