- Miscellaneous variables
- bereq
.url .basename - bereq
.url .dirname - bereq
.url .qs - bereq
.url - beresp
.backend .ip - beresp
.backend .name - beresp
.backend .port - beresp
.grace - beresp
.hipaa - beresp
.pci - client
.ip - client
.port - client
.requests - client
.socket .pace - fastly
.error - req
.backend .healthy - req
.backend .is_cluster - req
.backend .is_origin - req
.backend .is_shield - req
.backend - req
.body .base64 - req
.body - req
.grace - req
.http .host - req
.is_ipv6 - req
.restarts - req
.url .basename - req
.url .dirname - req
.url .ext - req
.url .path - req
.url .qs - req
.url - stale
.exists
req.url.basename
The file name specified in a URL.
Examples
In the request www.example.com/1/hello.gif?foo=bar
, req.url.basename
will contain hello.gif
.
Type
STRING
Accessibility
Read OnlyReadable From
All subroutines