summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-change-path.pl
blob: c4070b2a76b4c2827151c35216199f85f9274428 (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 => {
		qr/GET \/251 HTTP\/1\.0/ => 1,
	},
    },
    relayd => {
	protocol => [ "http",
	    'match request path set "*" value "/foopath" \
		url log "*"',
	],
	loggrep => { qr/ (?:done|last write \(done\)), \[foo.bar\/foopath\]/ => 1 },
    },
    server => {
	func => \&http_server,
	loggrep => {
		qr/GET \/foopath HTTP\/1\.0/ => 1,
	},
    },
    len => 8,
);

1;