summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-append.pl
blob: db13a06ae3d9dd11d4aeb05fffb40e4ff81061df (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
27
use strict;
use warnings;

our %args = (
    client => {
	func => \&http_client,
	loggrep => {
	    'X-Server-Append: \d+\.\d+\.\d+\.\d+:\d+$' => 1,
	    'Set-Cookie: a=b\;' => 1,
	},
    },
    relayd => {
	protocol => [ "http",
	    'match request header append X-Client-Append value \
		"$REMOTE_ADDR:$REMOTE_PORT"',
	    'match response header append X-Server-Append value \
		"$SERVER_ADDR:$SERVER_PORT" \
		cookie set "a" value "b"',
	],
    },
    server => {
	func => \&http_server,
	loggrep => { 'X-Client-Append: \d+\.\d+\.\d+\.\d+:\d+$' => 1 },
    },
);

1;