public function changeHeaders(callable $callback): void
    {
        foreach ($this->headers as $name => $value) {
            $this->headers[$name] = call_user_func($callback, $name, $value);
        }
    }
public function changeHeaders(callable $callback): void
    {
        foreach ($this->headers as $name => $value) {
            $this->headers[$name] = call_user_func($callback, $name, $value);
        }
    }
public function changeHeaders ( callable $ callback ) : void { foreach ( $ this -> headers as $ name => $ value ) { $ this -> headers [ $ name ] = call_user_func ( $ callback , $ name , $ value ) ; } }
Changes headers using callback function.
@param callable $callback
@return void
Changes headers using callback function .