http-request return if { path /def-1 }
http-request return hdr "x-custom-hdr" "%[url]" if { path /def-2 }
http-request return status 403 if { path /def-3 }
- http-request return content-type "text/plain" if { path /def-4 }
+ http-request return if { path /def-4 }
http-request return content-type "text/plain" string "hello" hdr "x-custom-hdr" "%[url]" if { path /string }
http-request return content-type "text/plain" lf-string "path is %[url]" hdr "x-custom-hdr" "%[url]" if { path /lf-string }
- http-request return content-type "text/plain" file /dev/null hdr "x-custom-hdr" "%[url]" if { path /empty-file }
+ http-request return file /dev/null hdr "x-custom-hdr" "%[url]" if { path /empty-file }
http-request return content-type "text/plain" file ${testdir}/1k.txt hdr "x-custom-hdr" "%[url]" if { path /file }
http-request return content-type "text/plain" lf-file ${testdir}/lf-file.txt hdr "x-custom-hdr" "%[url]" if { path /lf-file }
} -start
frontend fe
bind "fd@${fe}"
acl input hdr(encode) -m found
- http-request return content-type text/plain hdr encode %[hdr(encode),ub64enc] hdr decode %[hdr(decode),ub64dec] if input
- http-request return content-type text/plain hdr encode %[bin(14fb9c03d97f12d97e),ub64enc] hdr decode %[str(FPucA9l_Etl-),ub64dec,hex,lower] if !input
-
+ http-request return hdr encode %[hdr(encode),ub64enc] hdr decode %[hdr(decode),ub64dec] if input
+ http-request return hdr encode %[bin(14fb9c03d97f12d97e),ub64enc] hdr decode %[str(FPucA9l_Etl-),ub64dec,hex,lower] if !input
} -start
client c1 -connect ${h1_fe_sock} {