function isXmlHttpRequest()
    {
        /** @var iHeader $header */
        if (! $this->getMessageObject()->headers()->has('X-Requested-With') )
            return false;

        $header = $this->getMessageObject()->headers()->get('X-Requested-With');
        return false !== $header && \Poirot\Http\Header\renderHeader($header) == 'XMLHttpRequest';
    }
function isXmlHttpRequest()
    {
        /** @var iHeader $header */
        if (! $this->getMessageObject()->headers()->has('X-Requested-With') )
            return false;

        $header = $this->getMessageObject()->headers()->get('X-Requested-With');
        return false !== $header && \Poirot\Http\Header\renderHeader($header) == 'XMLHttpRequest';
    }
function isXmlHttpRequest ( ) { /** @var iHeader $header */ if ( ! $ this -> getMessageObject ( ) -> headers ( ) -> has ( 'X-Requested-With' ) ) return false ; $ header = $ this -> getMessageObject ( ) -> headers ( ) -> get ( 'X-Requested-With' ) ; return false !== $ header && \ Poirot \ Http \ Header \ renderHeader ( $ header ) == 'XMLHttpRequest' ; }
Is the request a Javascript XMLHttpRequest?

Should work with Prototype/Script.aculo.us, possibly others.

@return bool
Is the request a Javascript XMLHttpRequest?