HTTP Request

Learn how to create a new Inphinit project.

Determine types of requests

{placeholder}

Usage Description
Request::is('pjax') Returns true if sent X-Pjax header in request, otherwise returns false.
Request::is('prefetch') Returns true if sent prefetch header (eg.: sec-purpose, x-purpose, purpose, x-moz) in request, otherwise returns false.
Request::is('save') Returns true if sent Save-Data: on header in request, otherwise returns false.
Request::is('secure') Returns true if using HTTPS, otherwise returns false.
Request::is('xhr') Returns true if sent X-Requested-With: XMLHttpRequest header in request, otherwise returns false.
Go to homepage
Star us on Github