public function getAll() : array
    {
        $headers = [];
        foreach ($this->headers as $h => $v) {
            $headers[] = $h.': '.$v;
        }

        return $headers;
    }
public function getAll() : array
    {
        $headers = [];
        foreach ($this->headers as $h => $v) {
            $headers[] = $h.': '.$v;
        }

        return $headers;
    }
public function getAll ( ) : array { $ headers = [ ] ; foreach ( $ this -> headers as $ h => $ v ) { $ headers [ ] = $ h . ': ' . $ v ; } return $ headers ; }
Get all headers in CURL format.

@return array
Get all headers in CURL format .