📄 classphttpserver.html
字号:
<tr> <td> </td> <td><p>Process commands, dispatching to the appropriate virtual function. This is used when the socket is acting as a server.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the request specified persistant mode and the request version allows it, FALSE if the socket closed, timed out, the protocol does not allow persistant mode, or the client did not request it timed out </dl> </td> </tr></table><a name="a10" doxytag="PHTTPServer::ReadEntityBody"></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 <a class="el" href="classPString.html">PString</a> PHTTPServer::ReadEntityBody </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Read the entity body associated with a HTTP request, and close the socket if not a persistant connection.<p><dl compact><dt><b>Returns: </b></dt><dd> The entity body of the command </dl> </td> </tr></table><a name="a14" doxytag="PHTTPServer::SetDefaultMIMEInfo"></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"> void PHTTPServer::SetDefaultMIMEInfo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPMIMEInfo.html">PMIMEInfo</a> & </td> <td class="mdname" nowrap> <em>info</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPHTTPConnectionInfo.html">PHTTPConnectionInfo</a> & </td> <td class="mdname" nowrap> <em>connectInfo</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Set the default mime info </td> </tr></table><a name="a4" doxytag="PHTTPServer::SetURLSpace"></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"> void PHTTPServer::SetURLSpace </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPHTTPSpace.html">PHTTPSpace</a> & </td> <td class="mdname1" valign="top" nowrap> <em>space</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Use a new URL name space for this HTTP socket.<p> </td> </tr></table><a name="a12" doxytag="PHTTPServer::StartResponse"></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"> BOOL PHTTPServer::StartResponse </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPHTTP.html#s43">StatusCode</a> </td> <td class="mdname" nowrap> <em>code</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classPMIMEInfo.html">PMIMEInfo</a> & </td> <td class="mdname" nowrap> <em>headers</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>long </td> <td class="mdname" nowrap> <em>bodySize</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Write a command reply back to the client, and construct some of the outgoing MIME fields. The MIME fields are not sent.<p>The <code>bodySize</code> parameter determines the size of the entity body associated with the response. If <code>bodySize</code> is >= 0, then a ContentLength field will be added to the outgoing MIME headers if one does not already exist.<p>If <code>bodySize</code> is < 0, then it is assumed that the size of the entity body is unknown, or has already been added, and no ContentLength field will be constructed.<p>If the version of the request is less than 1.0, then this function does nothing.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if requires v1.1 chunked transfer encoding. </dl> </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="n1" doxytag="PHTTPServer::connectInfo"></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"> <a class="el" href="classPHTTPConnectionInfo.html">PHTTPConnectionInfo</a> PHTTPServer::connectInfo<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="n3" doxytag="PHTTPServer::nextTimeout"></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"> <a class="el" href="classPTimeInterval.html">PTimeInterval</a> PHTTPServer::nextTimeout<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="n2" doxytag="PHTTPServer::transactionCount"></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"> unsigned PHTTPServer::transactionCount<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="n0" doxytag="PHTTPServer::urlSpace"></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"> <a class="el" href="classPHTTPSpace.html">PHTTPSpace</a> PHTTPServer::urlSpace<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="http_8h-source.html">http.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:17 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -