> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# gpudb::HttpResponse

> gpudb::HttpResponse — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p><code>#include \<<a className="el" href="/content/api/cpp/Http_8hpp_source">gpudb/Http.hpp</a>></code></p>
    <div id="dynsection-0" className="dynheader closed"> Inheritance diagram for gpudb::HttpResponse:</div>

    <div id="dynsection-0-summary" className="dynsummary" />

    <div id="dynsection-0-content" className="dyncontent">
      <div className="center" />

      <div className="center"><span className="legend">\[<a target="top" href="/content/api/cpp/graph_legend">legend</a>]</span></div>
    </div>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:a6c6ee5e25ecae7403caf19431ad38a03" id="r_a6c6ee5e25ecae7403caf19431ad38a03">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a6c6ee5e25ecae7403caf19431ad38a03">HttpResponse</a> ()</td>
      </tr>

      <tr className="separator:a6c6ee5e25ecae7403caf19431ad38a03">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:aed7883e9757fa8dc0934b68836d7ccbb" id="r_aed7883e9757fa8dc0934b68836d7ccbb">
        <td className="memItemLeft" align="right" valign="top">virtual </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#aed7883e9757fa8dc0934b68836d7ccbb">\~HttpResponse</a> ()</td>
      </tr>

      <tr className="separator:aed7883e9757fa8dc0934b68836d7ccbb">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a5ce9bc300f9c0d29c4fa1507bb196b95" id="r_a5ce9bc300f9c0d29c4fa1507bb196b95">
        <td className="memItemLeft" align="right" valign="top">const std::string & </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a5ce9bc300f9c0d29c4fa1507bb196b95">getResponseVersion</a> () const</td>
      </tr>

      <tr className="separator:a5ce9bc300f9c0d29c4fa1507bb196b95">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a4aebe90dcb0dd84d580d9015d704256f" id="r_a4aebe90dcb0dd84d580d9015d704256f">
        <td className="memItemLeft" align="right" valign="top">unsigned int </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a4aebe90dcb0dd84d580d9015d704256f">getResponseCode</a> () const</td>
      </tr>

      <tr className="separator:a4aebe90dcb0dd84d580d9015d704256f">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a66820dd35ecade13d5defc03d20fffd3" id="r_a66820dd35ecade13d5defc03d20fffd3">
        <td className="memItemLeft" align="right" valign="top">const std::string & </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a66820dd35ecade13d5defc03d20fffd3">getResponseMessage</a> () const</td>
      </tr>

      <tr className="separator:a66820dd35ecade13d5defc03d20fffd3">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:af636df0b0c56f90aa8f3bac8499223e6" id="r_af636df0b0c56f90aa8f3bac8499223e6">
        <td className="memItemLeft" align="right" valign="top">const std::string & </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#af636df0b0c56f90aa8f3bac8499223e6">getResponseHeader</a> (const std::string \&key) const</td>
      </tr>

      <tr className="separator:af636df0b0c56f90aa8f3bac8499223e6">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:aad019b2509eea8fc830bd4f92fa6de4c" id="r_aad019b2509eea8fc830bd4f92fa6de4c">
        <td className="memItemLeft" align="right" valign="top">const std::map\< std::string, std::string > & </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#aad019b2509eea8fc830bd4f92fa6de4c">getResponseHeaders</a> () const</td>
      </tr>

      <tr className="separator:aad019b2509eea8fc830bd4f92fa6de4c">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Protected Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:a4c806d9910ed08a2b0d4fb2f2078ecd5" id="r_a4c806d9910ed08a2b0d4fb2f2078ecd5">
        <td className="memItemLeft" align="right" valign="top">virtual void </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a4c806d9910ed08a2b0d4fb2f2078ecd5">write</a> (const void \*data, const size\_t length)</td>
      </tr>

      <tr className="separator:a4c806d9910ed08a2b0d4fb2f2078ecd5">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Friends</h2>
        </td>
      </tr>

      <tr className="memitem:aa734fb058c326e0da7c057761fe95538" id="r_aa734fb058c326e0da7c057761fe95538">
        <td className="memTemplParams" colSpan="2">template\<typename T> </td>
      </tr>

      <tr className="memitem:aa734fb058c326e0da7c057761fe95538">
        <td className="memTemplItemLeft" align="right" valign="top">class </td>
        <td className="memTemplItemRight" valign="bottom"><a className="el" href="#aa734fb058c326e0da7c057761fe95538">HttpConnection</a></td>
      </tr>

      <tr className="separator:aa734fb058c326e0da7c057761fe95538">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/Http_8hpp_source#l00158">158</a> of file <a className="el" href="/content/api/cpp/Http_8hpp_source">Http.hpp</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a6c6ee5e25ecae7403caf19431ad38a03">◆ </a></span>HttpResponse()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">gpudb::HttpResponse::HttpResponse </td>
            <td>(</td>

            <td className="paramname">
              <span className="paramname">
                <span className="em" />
              </span>
            </td>

            <td>)</td>

            <td />
          </tr>
        </table>
      </div>

      <div className="memdoc" />
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#aed7883e9757fa8dc0934b68836d7ccbb">◆ </a></span>\~HttpResponse()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">virtual gpudb::HttpResponse::\~HttpResponse </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

                  <td />
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel virtual">virtual</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc" />
    </div>

    <h2 className="groupheader">Member Function Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a4aebe90dcb0dd84d580d9015d704256f">◆ </a></span>getResponseCode()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">unsigned int gpudb::HttpResponse::getResponseCode </td>
            <td>(</td>

            <td className="paramname">
              <span className="paramname">
                <span className="em" />
              </span>
            </td>

            <td>)</td>
            <td> const</td>
          </tr>
        </table>
      </div>

      <div className="memdoc" />
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#af636df0b0c56f90aa8f3bac8499223e6">◆ </a></span>getResponseHeader()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">const std::string & gpudb::HttpResponse::getResponseHeader </td>
            <td>(</td>
            <td className="paramtype">const std::string &</td>
            <td className="paramname"><span className="paramname"><span className="em">key</span></span></td>
            <td>)</td>
            <td> const</td>
          </tr>
        </table>
      </div>

      <div className="memdoc" />
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#aad019b2509eea8fc830bd4f92fa6de4c">◆ </a></span>getResponseHeaders()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">const std::map\< std::string, std::string > & gpudb::HttpResponse::getResponseHeaders </td>
            <td>(</td>

            <td className="paramname">
              <span className="paramname">
                <span className="em" />
              </span>
            </td>

            <td>)</td>
            <td> const</td>
          </tr>
        </table>
      </div>

      <div className="memdoc" />
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a66820dd35ecade13d5defc03d20fffd3">◆ </a></span>getResponseMessage()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">const std::string & gpudb::HttpResponse::getResponseMessage </td>
            <td>(</td>

            <td className="paramname">
              <span className="paramname">
                <span className="em" />
              </span>
            </td>

            <td>)</td>
            <td> const</td>
          </tr>
        </table>
      </div>

      <div className="memdoc" />
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a5ce9bc300f9c0d29c4fa1507bb196b95">◆ </a></span>getResponseVersion()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">const std::string & gpudb::HttpResponse::getResponseVersion </td>
            <td>(</td>

            <td className="paramname">
              <span className="paramname">
                <span className="em" />
              </span>
            </td>

            <td>)</td>
            <td> const</td>
          </tr>
        </table>
      </div>

      <div className="memdoc" />
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a4c806d9910ed08a2b0d4fb2f2078ecd5">◆ </a></span>write()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">virtual void gpudb::HttpResponse::write </td>
                  <td>(</td>
                  <td className="paramtype">const void \*</td>
                  <td className="paramname"><span className="paramname"><span className="em">data</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const size\_t</td>
                  <td className="paramname"><span className="paramname"><span className="em">length</span></span> )</td>
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel protected">protected</span><span className="mlabel virtual">virtual</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Reimplemented in <a className="el" href="/content/api/cpp/classgpudb_1_1BinaryHttpResponse#a82fcdbbc49b63af14220aabaf8b7bcc3">gpudb::BinaryHttpResponse</a>, and <a className="el" href="/content/api/cpp/classgpudb_1_1StringHttpResponse#a212006b6ea5b71293e9c8c431a55f09b">gpudb::StringHttpResponse</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Friends And Related Symbol Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#aa734fb058c326e0da7c057761fe95538">◆ </a></span>HttpConnection</h2>

    <div className="memitem">
      <div className="memproto">
        <div className="memtemplate"> template\<typename T> </div>

        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">friend class <a className="el" href="/content/api/cpp/classgpudb_1_1HttpConnection">HttpConnection</a></td>
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel friend">friend</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/Http_8hpp_source#l00175">175</a> of file <a className="el" href="/content/api/cpp/Http_8hpp_source">Http.hpp</a>.</p>
      </div>
    </div>

    <hr />

    The documentation for this class was generated from the following file:

    <ul>
      <li>gpudb/<a className="el" href="/content/api/cpp/Http_8hpp_source">Http.hpp</a></li>
    </ul>
  </div>
</div>
