GoLang Yaf_Request_Http::isXmlHttpRequest

request it (343)
GoLang replacement for PHP's Yaf_Request_Http::isXmlHttpRequest [edit | history]



Do you know a GoLang replacement for PHP's Yaf_Request_Http::isXmlHttpRequest? Write it!

PHP Yaf_Request_Http::isXmlHttpRequest

PHP original manual for Yaf_Request_Http::isXmlHttpRequest [ show | php.net ]

Yaf_Request_Http::isXmlHttpRequest

(Yaf >=1.0.0)

Yaf_Request_Http::isXmlHttpRequestDetermin if request is Ajax Request

Description

public bool Yaf_Request_Http::isXmlHttpRequest ( void )

Check the request whether it is a Ajax Request.

Note:

This method depends on the request header: HTTP_X_REQUESTED_WITH, some Javascript library doesn't set this header while doing Ajax request

Parameters

This function has no parameters.

Return Values

boolean