2011-08-27 15:04:16 +04:00
|
|
|
# vim:set ft= ts=4 sw=4 et fdm=marker:
|
|
|
|
use lib 'lib';
|
|
|
|
use Test::Nginx::Socket;
|
|
|
|
|
|
|
|
#worker_connections(1014);
|
|
|
|
#master_on();
|
|
|
|
#workers(2);
|
|
|
|
log_level('warn');
|
|
|
|
|
|
|
|
repeat_each(2);
|
|
|
|
|
|
|
|
plan tests => repeat_each() * (blocks() * 2);
|
|
|
|
|
|
|
|
#no_diff();
|
|
|
|
#no_long_string();
|
|
|
|
run_tests();
|
|
|
|
|
|
|
|
__DATA__
|
|
|
|
|
|
|
|
=== TEST 1: sanity
|
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "([0-9]+)", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
1234
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 2: escaping sequences
|
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "(\\\\d+)", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
1234
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 3: escaping sequences (bad)
|
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "(\\d+)", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
not matched!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 4: escaping sequences in [[ ... ]]
|
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "[[\\d+]]", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
not matched!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 5: single capture
|
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "([0-9]{2})[0-9]+", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
ngx.say(m[1])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
1234
|
|
|
|
12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 6: multiple captures
|
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "([a-z]+).*?([0-9]{2})[0-9]+", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
ngx.say(m[1])
|
|
|
|
ngx.say(m[2])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
hello, 1234
|
|
|
|
hello
|
|
|
|
12
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 7: not matched
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "foo", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
not matched: nil
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 8: case sensitive by default
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "HELLO", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
not matched: nil
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 9: case sensitive by default
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "HELLO", "oi")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
hello
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 10: UTF-8 mode
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello章亦春", "HELLO.{2}", "iou")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
hello章亦
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 11: multi-line mode (^ at line head)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello\\nworld", "^world", "mo")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
world
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 12: multi-line mode (. does not match \n)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello\\nworld", ".*", "om")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
hello
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 13: single-line mode (^ as normal)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello\\nworld", "^world", "so")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
not matched: nil
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 14: single-line mode (dot all)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello\\nworld", ".*", "os")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
hello
|
|
|
|
world
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 15: extended mode (ignore whitespaces)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello\\nworld", "\\\\w \\\\w", "xo")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
he
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 16: bad pattern
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
rc, m = pcall(ngx.re.match, "hello\\nworld", "(abc", "o")
|
|
|
|
if rc then
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
else
|
|
|
|
ngx.say("error: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
error: bad argument #2 to '?' (failed to compile regex "(abc": pcre_compile() failed: missing ) in "(abc")
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 17: bad option
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
rc, m = pcall(ngx.re.match, "hello\\nworld", ".*", "Ho")
|
|
|
|
if rc then
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
else
|
|
|
|
ngx.say("error: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
error: bad argument #3 to '?' (unknown flag "H")
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 18: extended mode (ignore whitespaces)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, world", "(world)|(hello)", "xo")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
ngx.say(m[1])
|
|
|
|
ngx.say(m[2])
|
|
|
|
else
|
|
|
|
ngx.say("not matched: ", m)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
hello
|
|
|
|
nil
|
|
|
|
hello
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 19: optional trailing captures
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "([0-9]+)(h?)", "o")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
ngx.say(m[1])
|
|
|
|
ngx.say(m[2])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body eval
|
|
|
|
"1234
|
|
|
|
1234
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 20: anchored match (failed)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("hello, 1234", "([0-9]+)", "oa")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
not matched!
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 21: anchored match (succeeded)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
m = ngx.re.match("1234, hello", "([0-9]+)", "ao")
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
1234
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 22: match with ctx but no pos
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
local ctx = {}
|
|
|
|
m = ngx.re.match("1234, hello", "([0-9]+)", "o", ctx)
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
ngx.say(ctx.pos)
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
ngx.say(ctx.pos)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
1234
|
|
|
|
4
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 23: match with ctx and a pos
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
local ctx = { pos = 2 }
|
|
|
|
m = ngx.re.match("1234, hello", "([0-9]+)", "o", ctx)
|
|
|
|
if m then
|
|
|
|
ngx.say(m[0])
|
|
|
|
ngx.say(ctx.pos)
|
|
|
|
else
|
|
|
|
ngx.say("not matched!")
|
|
|
|
ngx.say(ctx.pos)
|
|
|
|
end
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
34
|
|
|
|
4
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 24: sanity (set_by_lua)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
set_by_lua $res '
|
|
|
|
m = ngx.re.match("hello, 1234", "([0-9]+)", "o")
|
|
|
|
if m then
|
|
|
|
return m[0]
|
|
|
|
else
|
|
|
|
return "not matched!"
|
|
|
|
end
|
|
|
|
';
|
|
|
|
echo $res;
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
1234
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 25: match (look-behind assertion)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
local ctx = {}
|
|
|
|
local m = ngx.re.match("{foobarbaz}", "(?<=foo)bar|(?<=bar)baz", "o", ctx)
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
|
|
|
|
m = ngx.re.match("{foobarbaz}", "(?<=foo)bar|(?<=bar)baz", "o", ctx)
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
bar
|
|
|
|
baz
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 26: match (with regex cache)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
local m = ngx.re.match("hello, 1234", "([A-Z]+)", "io")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
|
|
|
|
m = ngx.re.match("1234, okay", "([A-Z]+)", "io")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
|
|
|
|
m = ngx.re.match("hello, 1234", "([A-Z]+)", "o")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
hello
|
|
|
|
okay
|
|
|
|
nil
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 27: match (with regex cache and ctx)
|
2011-08-27 15:04:16 +04:00
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
local ctx = {}
|
|
|
|
local m = ngx.re.match("hello, 1234", "([A-Z]+)", "io", ctx)
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
ngx.say(ctx.pos)
|
|
|
|
|
|
|
|
m = ngx.re.match("1234, okay", "([A-Z]+)", "io", ctx)
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
ngx.say(ctx.pos)
|
|
|
|
|
|
|
|
ctx.pos = 0
|
|
|
|
m = ngx.re.match("hi, 1234", "([A-Z]+)", "o", ctx)
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
ngx.say(ctx.pos)
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
hello
|
|
|
|
5
|
|
|
|
okay
|
|
|
|
10
|
|
|
|
nil
|
|
|
|
0
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 28: exceeding regex cache max entries
|
2011-08-27 15:04:16 +04:00
|
|
|
--- http_config
|
|
|
|
lua_regex_cache_max_entries 2;
|
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
local m = ngx.re.match("hello, 1234", "([0-9]+)", "o")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
|
|
|
|
m = ngx.re.match("howdy, 567", "([0-9]+)", "oi")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
|
|
|
|
m = ngx.re.match("hiya, 98", "([0-9]+)", "ox")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
1234
|
|
|
|
567
|
|
|
|
98
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 17:44:45 +04:00
|
|
|
=== TEST 29: disable regex cache completely
|
2011-08-27 15:04:16 +04:00
|
|
|
--- http_config
|
|
|
|
lua_regex_cache_max_entries 0;
|
|
|
|
--- config
|
|
|
|
location /re {
|
|
|
|
content_by_lua '
|
|
|
|
local m = ngx.re.match("hello, 1234", "([0-9]+)", "o")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
|
|
|
|
m = ngx.re.match("howdy, 567", "([0-9]+)", "oi")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
|
|
|
|
m = ngx.re.match("hiya, 98", "([0-9]+)", "ox")
|
|
|
|
ngx.say(m and m[0])
|
|
|
|
';
|
|
|
|
}
|
|
|
|
--- request
|
|
|
|
GET /re
|
|
|
|
--- response_body
|
|
|
|
1234
|
|
|
|
567
|
|
|
|
98
|
|
|
|
|