public function send(string $str): void
    {
        if ($this->need_headers) {
            $this->sendHttpHeaders();
        }
        $this->need_headers = false;

        fwrite($this->opt->getOutputStream(), $str);
    }
public function send(string $str): void
    {
        if ($this->need_headers) {
            $this->sendHttpHeaders();
        }
        $this->need_headers = false;

        fwrite($this->opt->getOutputStream(), $str);
    }
public function send ( string $ str ) : void { if ( $ this -> need_headers ) { $ this -> sendHttpHeaders ( ) ; } $ this -> need_headers = false ; fwrite ( $ this -> opt -> getOutputStream ( ) , $ str ) ; }
Send string, sending HTTP headers if necessary.

@param String $str
@return void
Send string sending HTTP headers if necessary .