⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classphttpfile.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>PHTTPFile class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>PHTTPFile Class Reference</h1><code>#include &lt;<a class="el" href="http_8h-source.html">http.h</a>&gt;</code><p><p>Inheritance diagram for PHTTPFile:<p><center><img src="classPHTTPFile.png" usemap="#PHTTPFile_map" border="0" alt=""></center><map name="PHTTPFile_map"><area href="classPHTTPResource.html" alt="PHTTPResource" shape="rect" coords="158,56,306,80"><area href="classPObject.html" alt="PObject" shape="rect" coords="158,0,306,24"><area href="classPHTTPDirectory.html" alt="PHTTPDirectory" shape="rect" coords="0,168,148,192"><area href="classPHTTPTailFile.html" alt="PHTTPTailFile" shape="rect" coords="158,168,306,192"><area href="classPServiceHTTPFile.html" alt="PServiceHTTPFile" shape="rect" coords="316,168,464,192"><area href="classPServiceHTTPDirectory.html" alt="PServiceHTTPDirectory" shape="rect" coords="0,224,148,248"></map><a href="classPHTTPFile-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a0">PHTTPFile</a> (const <a class="el" href="classPString.html">PString</a> &amp;filename)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a1">PHTTPFile</a> (const <a class="el" href="classPString.html">PString</a> &amp;filename, const <a class="el" href="classPHTTPAuthority.html">PHTTPAuthority</a> &amp;auth)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a2">PHTTPFile</a> (const <a class="el" href="classPURL.html">PURL</a> &amp;url, const <a class="el" href="classPFilePath.html">PFilePath</a> &amp;file)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a3">PHTTPFile</a> (const <a class="el" href="classPURL.html">PURL</a> &amp;url, const <a class="el" href="classPFilePath.html">PFilePath</a> &amp;file, const <a class="el" href="classPString.html">PString</a> &amp;<a class="el" href="classPHTTPResource.html#n1">contentType</a>)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a4">PHTTPFile</a> (const <a class="el" href="classPURL.html">PURL</a> &amp;url, const <a class="el" href="classPFilePath.html">PFilePath</a> &amp;file, const <a class="el" href="classPHTTPAuthority.html">PHTTPAuthority</a> &amp;auth)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a5">PHTTPFile</a> (const <a class="el" href="classPURL.html">PURL</a> &amp;url, const <a class="el" href="classPFilePath.html">PFilePath</a> &amp;file, const <a class="el" href="classPString.html">PString</a> &amp;<a class="el" href="classPHTTPResource.html#n1">contentType</a>, const <a class="el" href="classPHTTPAuthority.html">PHTTPAuthority</a> &amp;auth)</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPHTTPRequest.html">PHTTPRequest</a> *&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a6">CreateRequest</a> (const <a class="el" href="classPURL.html">PURL</a> &amp;url, const <a class="el" href="classPMIMEInfo.html">PMIMEInfo</a> &amp;inMIME, const PMultipartFormInfoArray &amp;multipartFormInfo, <a class="el" href="classPHTTPServer.html">PHTTPServer</a> &amp;socket)</td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a7">LoadHeaders</a> (<a class="el" href="classPHTTPRequest.html">PHTTPRequest</a> &amp;request)</td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a8">LoadData</a> (<a class="el" href="classPHTTPRequest.html">PHTTPRequest</a> &amp;request, <a class="el" href="classPCharArray.html">PCharArray</a> &amp;data)</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#a9">LoadText</a> (<a class="el" href="classPHTTPRequest.html">PHTTPRequest</a> &amp;request)</td></tr><tr><td colspan=2><br><h2>Protected Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#b0">PHTTPFile</a> (const <a class="el" href="classPURL.html">PURL</a> &amp;url, int dummy)</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPFilePath.html">PFilePath</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPFile.html#n0">filePath</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This object describes a HyperText Transport Protocol resource which is a single file. The file can be anywhere in the file system and is mapped to the specified URL location in the HTTP name space defined by the PHTTPSpace# class. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="PHTTPFile::PHTTPFile"></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"> PHTTPFile::PHTTPFile </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>filename</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Contruct a new simple file resource for the HTTP space. If no MIME content type is specified then a default type is used depending on the file type. For example, "text/html" is used of the file type is ".html" or ".htm". The default for an unknown type is "application/octet-stream".     </td>  </tr></table><a name="a1" doxytag="PHTTPFile::PHTTPFile"></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"> PHTTPFile::PHTTPFile </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>filename</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPHTTPAuthority.html">PHTTPAuthority</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>auth</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a2" doxytag="PHTTPFile::PHTTPFile"></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"> PHTTPFile::PHTTPFile </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="classPFilePath.html">PFilePath</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>file</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a3" doxytag="PHTTPFile::PHTTPFile"></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"> PHTTPFile::PHTTPFile </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="classPFilePath.html">PFilePath</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>file</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>contentType</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a4" doxytag="PHTTPFile::PHTTPFile"></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"> PHTTPFile::PHTTPFile </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="classPFilePath.html">PFilePath</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>file</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPHTTPAuthority.html">PHTTPAuthority</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>auth</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a5" doxytag="PHTTPFile::PHTTPFile"></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"> PHTTPFile::PHTTPFile </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="classPFilePath.html">PFilePath</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>file</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>contentType</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPHTTPAuthority.html">PHTTPAuthority</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>auth</em></td>        </tr>        <tr>          <td></td>

⌨️ 快捷键说明

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