diff options
Diffstat (limited to 'docs/class_tg_bot_1_1_http_client.html')
-rw-r--r-- | docs/class_tg_bot_1_1_http_client.html | 209 |
1 files changed, 209 insertions, 0 deletions
diff --git a/docs/class_tg_bot_1_1_http_client.html b/docs/class_tg_bot_1_1_http_client.html new file mode 100644 index 0000000..9012991 --- /dev/null +++ b/docs/class_tg_bot_1_1_http_client.html @@ -0,0 +1,209 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.11"/> +<title>tgbot-cpp: TgBot::HttpClient Class Reference</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtreedata.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); + $(window).load(resizeHeight); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/searchdata.js"></script> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">tgbot-cpp + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.11 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="modules.html"><span>Modules</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li class="current"><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="annotated.html"><span>Class List</span></a></li> + <li><a href="classes.html"><span>Class Index</span></a></li> + <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> + <li><a href="functions.html"><span>Class Members</span></a></li> + </ul> + </div> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + <div id="nav-sync" class="sync"></div> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('class_tg_bot_1_1_http_client.html','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div class="header"> + <div class="summary"> +<a href="#pub-methods">Public Member Functions</a> | +<a href="#pub-static-methods">Static Public Member Functions</a> | +<a href="class_tg_bot_1_1_http_client-members.html">List of all members</a> </div> + <div class="headertitle"> +<div class="title">TgBot::HttpClient Class Reference<div class="ingroups"><a class="el" href="group__net.html">Net</a></div></div> </div> +</div><!--header--> +<div class="contents"> + +<p>This class makes http requests. + <a href="class_tg_bot_1_1_http_client.html#details">More...</a></p> + +<p><code>#include <<a class="el" href="_http_client_8h_source.html">HttpClient.h</a>></code></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> +Public Member Functions</h2></td></tr> +<tr class="memitem:a1de1ba0e962c7446e9820337bbf6d3e5"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_http_client.html#a1de1ba0e962c7446e9820337bbf6d3e5">makeRequest</a> (const <a class="el" href="class_tg_bot_1_1_url.html">Url</a> &url, const std::vector< <a class="el" href="class_tg_bot_1_1_http_req_arg.html">HttpReqArg</a> > &args)</td></tr> +<tr class="memdesc:a1de1ba0e962c7446e9820337bbf6d3e5"><td class="mdescLeft"> </td><td class="mdescRight">Sends a request to the url. <a href="#a1de1ba0e962c7446e9820337bbf6d3e5">More...</a><br /></td></tr> +<tr class="separator:a1de1ba0e962c7446e9820337bbf6d3e5"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> +Static Public Member Functions</h2></td></tr> +<tr class="memitem:a284380646ddc0fe9fd06cae29ba51a77"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_tg_bot_1_1_http_client.html">HttpClient</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_http_client.html#a284380646ddc0fe9fd06cae29ba51a77">getInstance</a> ()</td></tr> +<tr class="memdesc:a284380646ddc0fe9fd06cae29ba51a77"><td class="mdescLeft"> </td><td class="mdescRight">Returns instance which lives during all application lifetime. <a href="#a284380646ddc0fe9fd06cae29ba51a77">More...</a><br /></td></tr> +<tr class="separator:a284380646ddc0fe9fd06cae29ba51a77"><td class="memSeparator" colspan="2"> </td></tr> +</table> +<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> +<div class="textblock"><p>This class makes http requests. </p> + +<p>Definition at line <a class="el" href="_http_client_8h_source.html#l00041">41</a> of file <a class="el" href="_http_client_8h_source.html">HttpClient.h</a>.</p> +</div><h2 class="groupheader">Member Function Documentation</h2> +<a class="anchor" id="a284380646ddc0fe9fd06cae29ba51a77"></a> +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname">static <a class="el" href="class_tg_bot_1_1_http_client.html">HttpClient</a>& TgBot::HttpClient::getInstance </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td></td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">static</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> + +<p>Returns instance which lives during all application lifetime. </p> + +</div> +</div> +<a class="anchor" id="a1de1ba0e962c7446e9820337bbf6d3e5"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::string TgBot::HttpClient::makeRequest </td> + <td>(</td> + <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_url.html">Url</a> & </td> + <td class="paramname"><em>url</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const std::vector< <a class="el" href="class_tg_bot_1_1_http_req_arg.html">HttpReqArg</a> > & </td> + <td class="paramname"><em>args</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Sends a request to the url. </p> +<p>If there's no args specified, a GET request will be sent, otherwise a POST request will be sent. If at least 1 arg is marked as file, the content type of a request will be multipart/form-data, otherwise it will be application/x-www-form-urlencoded. </p> + +</div> +</div> +<hr/>The documentation for this class was generated from the following file:<ul> +<li>include/tgbot/net/<a class="el" href="_http_client_8h_source.html">HttpClient.h</a></li> +</ul> +</div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="namespace_tg_bot.html">TgBot</a></li><li class="navelem"><a class="el" href="class_tg_bot_1_1_http_client.html">HttpClient</a></li> + <li class="footer">Generated on Fri Jun 22 2018 22:14:16 for tgbot-cpp by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li> + </ul> +</div> +</body> +</html> |