summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-chunked.pl
blob: 839de14032ac3130977be251a0a9aeada01f95b5 (plain)
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
# test chunked http 1.1 connection over http relay

use strict;
use warnings;

my @lengths = ([ 251, 10000, 10 ], 1, [2, 3]);
our %args = (
    client => {
	func => \&http_client,
	lengths => \@lengths,
    },
    relayd => {
	protocol => [ "http",
	    "request header log foo",
	    "response header log Transfer-Encoding",
	],
	loggrep => { "log 'Transfer-Encoding: chunked'" => 2 },
    },
    server => {
	func => \&http_server,
    },
    lengths => \@lengths,
    md5 => "bc3a3f39af35fe5b1687903da2b00c7f",
);

1;