src/DebugBar/DebugBar.php
public function sendDataInHeaders($useOpenHandler = null, $headerName = 'phpdebugbar', $maxHeaderLength = 4096)
    {
        if ($useOpenHandler === null) {
            $useOpenHandler = self::$useOpenHandlerWhenSendingDataHeaders;
        }
        if ($useOpenHandler && $this->storage !== null) {
            $this->getData();
            $headerName .= '-id';
            $headers = array($headerName => $this->getCurrentRequestId());
        } else {
            $headers = $this->getDataAsHeaders($headerName, $maxHeaderLength);
        }
        $this->getHttpDriver()->setHeaders($headers);
        return $this;
    }
public function sendDataInHeaders($useOpenHandler = null, $headerName = 'phpdebugbar', $maxHeaderLength = 4096)
    {
        if ($useOpenHandler === null) {
            $useOpenHandler = self::$useOpenHandlerWhenSendingDataHeaders;
        }
        if ($useOpenHandler && $this->storage !== null) {
            $this->getData();
            $headerName .= '-id';
            $headers = array($headerName => $this->getCurrentRequestId());
        } else {
            $headers = $this->getDataAsHeaders($headerName, $maxHeaderLength);
        }
        $this->getHttpDriver()->setHeaders($headers);
        return $this;
    }
public function sendDataInHeaders ( $ useOpenHandler = null , $ headerName = 'phpdebugbar' , $ maxHeaderLength = 4096 ) { if ( $ useOpenHandler === null ) { $ useOpenHandler = self :: $ useOpenHandlerWhenSendingDataHeaders ; } if ( $ useOpenHandler && $ this -> storage !== null ) { $ this -> getData ( ) ; $ headerName .= '-id' ; $ headers = array ( $ headerName => $ this -> getCurrentRequestId ( ) ) ; } else { $ headers = $ this -> getDataAsHeaders ( $ headerName , $ maxHeaderLength ) ; } $ this -> getHttpDriver ( ) -> setHeaders ( $ headers ) ; return $ this ; }
Sends the data through the HTTP headers

@param bool $useOpenHandler
@param string $headerName
@param integer $maxHeaderLength
@return $this
Sends the data through the HTTP headers