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-0302 days ago63,133 downloads
2.8.1-01 year ago74,966 downloads
2.8.0-01 year ago14,357 downloads
2.7.0-01 year ago12,529 downloads
2.6.1-12 years ago24,478 downloads
2.6.1-02 years ago(revision: 2)6 downloads
2.6-02 years ago11,962 downloads
2.5-02 years ago8,504 downloads
2.4-02 years ago12,899 downloads
2.3-02 years ago73 downloads
2.2-02 years ago15,199 downloads
2.1-02 years ago1,885 downloads
2.0-02 years ago7,059 downloads
1.9-02 years ago950 downloads
1.8-02 years ago7,244 downloads
1.7-03 years ago3,114 downloads
1.6-13 years ago(revision: 2)587 downloads
1.6-03 years ago(revision: 2)12 downloads
1.5-03 years ago(revision: 2)519 downloads
1.4-03 years ago(revision: 2)301 downloads
1.3-03 years ago245 downloads
1.2-03 years ago136 downloads
1.1-03 years ago33 downloads
1.0-03 years ago31 downloads
0.9-03 years ago197 downloads
0.8-03 years ago100 downloads
0.7-03 years ago209 downloads
0.6-03 years ago63 downloads
0.5-03 years ago148 downloads
0.4-03 years ago317 downloads
0.3-03 years ago8 downloads

Dependencies

Dependency for

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

Manifests