classphttpserver.html

来自「pwlib开发文档」· HTML 代码 · 共 792 行 · 第 1/3 页

HTML
792
字号
  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Write an error response for the specified code.<p>Depending on the <code>code</code> parameter this function will also send a HTML version of the status code for display on the remote client viewer.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the connection may persist, FALSE if the connection must close </dl>    </td>  </tr></table><a name="a6" doxytag="PHTTPServer::OnGET"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PHTTPServer::OnGET </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPURL.html">PURL</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>url</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPMIMEInfo.html">PMIMEInfo</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>info</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPHTTPConnectionInfo.html">PHTTPConnectionInfo</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>conInfo</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Handle a GET command from a client.<p>The default implementation looks up the URL in the name space declared by the PHTTPSpace# class tree and despatches to the PHTTPResource# object contained therein.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the connection may persist, FALSE if the connection must close If there is no ContentLength field in the response, this value must be FALSE for correct operation. </dl>    </td>  </tr></table><a name="a7" doxytag="PHTTPServer::OnHEAD"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PHTTPServer::OnHEAD </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPURL.html">PURL</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>url</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPMIMEInfo.html">PMIMEInfo</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>info</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPHTTPConnectionInfo.html">PHTTPConnectionInfo</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>conInfo</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Handle a HEAD command from a client.<p>The default implemetation looks up the URL in the name space declared by the PHTTPSpace# class tree and despatches to the PHTTPResource# object contained therein.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the connection may persist, FALSE if the connection must close If there is no ContentLength field in the response, this value must be FALSE for correct operation. </dl>    </td>  </tr></table><a name="a8" doxytag="PHTTPServer::OnPOST"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PHTTPServer::OnPOST </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPURL.html">PURL</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>url</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPMIMEInfo.html">PMIMEInfo</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>info</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPStringToString.html">PStringToString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>data</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPHTTPConnectionInfo.html">PHTTPConnectionInfo</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>conInfo</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Handle a POST command from a client.<p>The default implementation looks up the URL in the name space declared by the PHTTPSpace# class tree and despatches to the PHTTPResource# object contained therein.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the connection may persist, FALSE if the connection must close If there is no ContentLength field in the response, this value must be FALSE for correct operation. </dl>    </td>  </tr></table><a name="a9" doxytag="PHTTPServer::OnProxy"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PHTTPServer::OnProxy </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPHTTPConnectionInfo.html">PHTTPConnectionInfo</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>conInfo</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Handle a proxy command request from a client. This will only get called if the request was not for this particular server. If it was a proxy request for this server (host and port number) then the appropriate <a class="el" href="classPHTTPServer.html#a6">OnGET()</a>#, <a class="el" href="classPHTTPServer.html#a7">OnHEAD()</a># or <a class="el" href="classPHTTPServer.html#a8">OnPOST()</a># command is called.<p>The default implementation returns OnError(BadGateway).<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the connection may persist, FALSE if the connection must close If there is no ContentLength field in the response, this value must be FALSE for correct operation. </dl>    </td>  </tr></table><a name="a11" doxytag="PHTTPServer::OnUnknown"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PHTTPServer::OnUnknown </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPCaselessString.html">PCaselessString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>command</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPHTTPConnectionInfo.html">PHTTPConnectionInfo</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>connectInfo</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Handle an unknown command.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the connection may persist, FALSE if the connection must close </dl>    </td>  </tr></table><a name="a5" doxytag="PHTTPServer::ProcessCommand"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PHTTPServer::ProcessCommand </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?