1use strict; 2use warnings; 3 4our %args = ( 5 client => { 6 func => \&http_client, 7 loggrep => { 8 'X-Server-Append: \d+\.\d+\.\d+\.\d+:\d+$' => 1, 9 'Set-Cookie: a=b\;' => 1, 10 }, 11 }, 12 relayd => { 13 protocol => [ "http", 14 'match request header append X-Client-Append value \ 15 "$REMOTE_ADDR:$REMOTE_PORT"', 16 'match response header append X-Server-Append value \ 17 "$SERVER_ADDR:$SERVER_PORT" \ 18 cookie set "a" value "b"', 19 ], 20 }, 21 server => { 22 func => \&http_server, 23 loggrep => { 'X-Client-Append: \d+\.\d+\.\d+\.\d+:\d+$' => 1 }, 24 }, 25); 26 271; 28