> ## 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.

# submitRequestToHostManager

<div className="kinetica-doxygen">
  <div id="a8c5649302a6ad92cf21b1023a602965c" />

  <h2 className="memtitle"><span className="permalink"><a href="#a8c5649302a6ad92cf21b1023a602965c">◆ </a></span>submitRequestToHostManager() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <div className="memtemplate"> template\<typename TRequest, typename TResponse> </div>

      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">TResponse & gpudb::GPUdb::submitRequestToHostManager </td>
                <td>(</td>
                <td className="paramtype">const char \*</td>
                <td className="paramname"><span className="paramname"><span className="em">endpoint</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">const TRequest &</td>
                <td className="paramname"><span className="paramname"><span className="em">request</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">TResponse &</td>
                <td className="paramname"><span className="paramname"><span className="em">response</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">const bool</td>
                <td className="paramname"><span className="paramname"><span className="em">enableCompression</span></span><span className="paramdefsep"> = </span><span className="paramdefval">false</span> ) const</td>
              </tr>
            </table>
          </td>

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

    <div className="memdoc">
      <p>Submit an HTTP request to the host manager. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">endpoint</td>
              <td>The endpoint for which the request is made. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request</td>
              <td>The request object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response</td>
              <td>The response object in which the return values will be saved. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">enableCompression</td>
              <td>Optional boolean flag indicating whether any compression should be used. Default is false.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">a reference to the response object. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/GPUdb.hpp#L520">520</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/GPUdb.hpp">GPUdb.hpp</a>.</p>
    </div>
  </div>

  <div id="a5ed7d74b744aa18779313910508c582e" />

  <h2 className="memtitle"><span className="permalink"><a href="#a5ed7d74b744aa18779313910508c582e">◆ </a></span>submitRequestToHostManager() <span className="overload">\[2/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <div className="memtemplate"> template\<typename TRequest, typename TResponse> </div>

      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">TResponse & gpudb::GPUdb::submitRequestToHostManager </td>
                <td>(</td>
                <td className="paramtype">const std::string &</td>
                <td className="paramname"><span className="paramname"><span className="em">endpoint</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">const TRequest &</td>
                <td className="paramname"><span className="paramname"><span className="em">request</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">TResponse &</td>
                <td className="paramname"><span className="paramname"><span className="em">response</span></span>, </td>
              </tr>

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

                <td />

                <td className="paramtype">const bool</td>
                <td className="paramname"><span className="paramname"><span className="em">enableCompression</span></span><span className="paramdefsep"> = </span><span className="paramdefval">false</span> ) const</td>
              </tr>
            </table>
          </td>

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

    <div className="memdoc">
      <p>Submit an HTTP request to the host manager. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">endpoint</td>
              <td>The endpoint for which the request is made. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request</td>
              <td>The request object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response</td>
              <td>The response object in which the return values will be saved. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">enableCompression</td>
              <td>Optional boolean flag indicating whether any compression should be used. Default is false.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">a reference to the response object. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/GPUdb.hpp#L469">469</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/GPUdb.hpp">GPUdb.hpp</a>.</p>
    </div>
  </div>
</div>
