public function setDebugHeaders($event)
    {
        if (!$this->checkAccess()) {
            return;
        }
        $url = Url::toRoute([
            '/' . $this->id . '/default/view',
            'tag' => $this->logTarget->tag,
        ]);
        $event->sender->getHeaders()
            ->set('X-Debug-Tag', $this->logTarget->tag)
            ->set('X-Debug-Duration', number_format((microtime(true) - YII_BEGIN_TIME) * 1000 + 1))
            ->set('X-Debug-Link', $url);
    }
public function setDebugHeaders($event)
    {
        if (!$this->checkAccess()) {
            return;
        }
        $url = Url::toRoute([
            '/' . $this->id . '/default/view',
            'tag' => $this->logTarget->tag,
        ]);
        $event->sender->getHeaders()
            ->set('X-Debug-Tag', $this->logTarget->tag)
            ->set('X-Debug-Duration', number_format((microtime(true) - YII_BEGIN_TIME) * 1000 + 1))
            ->set('X-Debug-Link', $url);
    }
public function setDebugHeaders ( $ event ) { if ( ! $ this -> checkAccess ( ) ) { return ; } $ url = Url :: toRoute ( [ '/' . $ this -> id . '/default/view' , 'tag' => $ this -> logTarget -> tag , ] ) ; $ event -> sender -> getHeaders ( ) -> set ( 'X-Debug-Tag' , $ this -> logTarget -> tag ) -> set ( 'X-Debug-Duration' , number_format ( ( microtime ( true ) - YII_BEGIN_TIME ) * 1000 + 1 ) ) -> set ( 'X-Debug-Link' , $ url ) ; }
Setting headers to transfer debug data in AJAX requests
without interfering with the request itself.

@param \yii\base\Event $event
@since 2.0.7
Setting headers to transfer debug data in AJAX requests without interfering with the request itself .