📄 classpion_1_1_h_t_t_p_request.html
字号:
<tr> <td class="memname">const char* pion::HTTPRequest::getPostContent </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>returns a buffer containing the POST content, or NULL if the request has no POST content <p>Definition at line <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00060">60</a> of file <a class="el" href="_h_t_t_p_request_8hpp-source.html">HTTPRequest.hpp</a>.</div></div><p><a class="anchor" name="a211a6b511a24dfb13196effc96483b9"></a><!-- doxytag: member="pion::HTTPRequest::getCookie" ref="a211a6b511a24dfb13196effc96483b9" args="(const std::string &key) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::string& pion::HTTPRequest::getCookie </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>key</em> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>returns a value for the cookie if any are defined; otherwise, an empty string since cookie names are insensitve, key should use lowercase alpha chars <p>Definition at line <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00074">74</a> of file <a class="el" href="_h_t_t_p_request_8hpp-source.html">HTTPRequest.hpp</a>.<p>References <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00194">getValue()</a>.</div></div><p><a class="anchor" name="b8dd3d1c0b81d7a9c2e59c597adddf3c"></a><!-- doxytag: member="pion::HTTPRequest::hasCookie" ref="b8dd3d1c0b81d7a9c2e59c597adddf3c" args="(const std::string &key) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">bool pion::HTTPRequest::hasCookie </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>key</em> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>returns true if at least one value for the cookie is defined since cookie names are insensitve, key should use lowercase alpha chars <p>Definition at line <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00105">105</a> of file <a class="el" href="_h_t_t_p_request_8hpp-source.html">HTTPRequest.hpp</a>.</div></div><p><a class="anchor" name="43f248f347da567673b3b9dcb73987d9"></a><!-- doxytag: member="pion::HTTPRequest::createPostContentBuffer" ref="43f248f347da567673b3b9dcb73987d9" args="(void)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">char* pion::HTTPRequest::createPostContentBuffer </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>creates a new POST content buffer of size m_content_length and returns a pointer to the new buffer (memory is managed by <a class="el" href="classpion_1_1_h_t_t_p_request.html">HTTPRequest</a> class) <p>Definition at line <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00133">133</a> of file <a class="el" href="_h_t_t_p_request_8hpp-source.html">HTTPRequest.hpp</a>.</div></div><p><a class="anchor" name="fafad43f3c39689eb5dbe39217304a2e"></a><!-- doxytag: member="pion::HTTPRequest::addCookie" ref="fafad43f3c39689eb5dbe39217304a2e" args="(const std::string &key, const std::string &value)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void pion::HTTPRequest::addCookie </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>key</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>adds a value for the cookie since cookie names are insensitve, key should use lowercase alpha chars <p>Definition at line <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00150">150</a> of file <a class="el" href="_h_t_t_p_request_8hpp-source.html">HTTPRequest.hpp</a>.</div></div><p><a class="anchor" name="3a204b37ac0fba5b30c0ee3e1d2d1170"></a><!-- doxytag: member="pion::HTTPRequest::getValue" ref="3a204b37ac0fba5b30c0ee3e1d2d1170" args="(const HTTPTypes::StringDictionary &dict, const std::string &key)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">static const std::string& pion::HTTPRequest::getValue </td> <td>(</td> <td class="paramtype">const <a class="el" href="structpion_1_1_h_t_t_p_types.html#c860abe7b994d3c0311318f2e335086e">HTTPTypes::StringDictionary</a> & </td> <td class="paramname"> <em>dict</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>key</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static, protected]</code></td> </tr> </table></div><div class="memdoc"><p>returns the first value in a dictionary if key is found; or an empty string if no values are found<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>the dictionary to search for key </td></tr> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>the key to search for </td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>value if found; empty string if not </dd></dl><p>Definition at line <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00194">194</a> of file <a class="el" href="_h_t_t_p_request_8hpp-source.html">HTTPRequest.hpp</a>.<p>References <a class="el" href="_h_t_t_p_types_8hpp-source.html#l00028">pion::HTTPTypes::STRING_EMPTY</a>.<p>Referenced by <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00074">getCookie()</a>, <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00063">getHeader()</a>, and <a class="el" href="_h_t_t_p_request_8hpp-source.html#l00068">getQuery()</a>.</div></div><p><hr>The documentation for this class was generated from the following file:<ul><li>/Users/mdickey/code/libpion-export/include/libpion/<a class="el" href="_h_t_t_p_request_8hpp-source.html">HTTPRequest.hpp</a></ul><hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 19 13:29:23 2007 for libpion by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -