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
29
|
# test persistent https 1.1 connection and grep for content length
use strict;
use warnings;
my @lengths = (1, 2, 0, 3, 4);
our %args = (
client => {
func => \&http_client,
lengths => \@lengths,
ssl => 1,
},
relayd => {
protocol => [ "http",
"match request header log foo",
"match response header log Content-Length",
],
loggrep => [ map { "Content-Length: $_" } @lengths ],
forwardssl => 1,
listenssl => 1,
},
server => {
func => \&http_server,
ssl => 1,
},
lengths => \@lengths,
);
1;
|