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

our %args = (
    client => {
	func => \&http_client,
	path => "query?foobar",
    },
    relayd => {
	table => 1,
	protocol => [ "http",
	    'match request path hash "/query"',
	    'match request path log "/query"',
	],
	relay => 'forward to <table-$test> port $connectport',
	loggrep => {
		qr/ (?:done|last write \(done\)), \[\/query: foobar\]/ => 1,
	},
    },
    server => {
	func => \&http_server,
    },
    len => 13,
);

1;