-
Notifications
You must be signed in to change notification settings - Fork 2
URI
Jurek Muszyński edited this page Mar 28, 2024
·
5 revisions
Compares request URI with string. Excludes leading /
. If ended with an asterisk, it will be treated as a wildcard.
Returns true if request URI matches string, otherwise false.
if ( URI("temp/document.pdf") )
send_pdf();
else if ( URI("/api/v1/products*") )
products_rest_api();