1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
use strict;
use warnings;
my @lengths = (21);
our %args = (
client => {
func => \&http_client,
lengths => \@lengths,
path => "query?foo=bar&ok=yes",
},
relayd => {
protocol => [ "http",
'block request',
'block request query log "ok"',
'pass query log "foo" value "bar"',
],
loggrep => {
qr/\[foo: bar\]/ => 2,
qr/\[ok: yes\]/ => 0,
},
},
server => {
func => \&http_server,
},
lengths => \@lengths,
);
1;
|