You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
9.8 KiB
111 lines
9.8 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.7"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Webserv: srcs/debug.cpp Source File</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="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>
|
|
<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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">Webserv
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.7 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<!-- 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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_b73b02d482d1c4a3db20c3d9ad52d395.html">srcs</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">debug.cpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="debug_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include "<a class="code" href="webserv_8hpp.html">webserv.hpp</a>"</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"><a class="line" href="debug_8cpp.html#afb2639655e07c91426064b6bdfff7079"> 3</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="debug_8cpp.html#afb2639655e07c91426064b6bdfff7079">debug_block</a>(<span class="keywordtype">string</span> name, <span class="keywordtype">string</span> content) {</div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> <span class="keywordtype">string</span> separator = <span class="stringliteral">"|==================================================="</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> <span class="stringliteral">"===========================|\n"</span>;</div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> cout << name << separator.substr(name.length(), string::npos) << content</div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> << <span class="stringliteral">"\n"</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> << separator;</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span>}</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="classClient.html#a1a58e00763626d48ee8625ad16a95d08"> 11</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classClient.html#a1a58e00763626d48ee8625ad16a95d08">Client::debug_header</a>(<span class="keywordtype">void</span>) {</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> cout << <span class="stringliteral">"Method: "</span> << <a class="code hl_variable" href="classClient.html#a6033d622cb33f0ea41313e859b621606">_method</a> << <span class="stringliteral">"\n"</span>;</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> cout << <span class="stringliteral">"Uri: "</span> << <a class="code hl_variable" href="classClient.html#a7af52bcb17cc9d34c2207d0e540f6ac1">_uri</a> << <span class="stringliteral">"\n"</span>;</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> cout << <span class="stringliteral">"Query: "</span> << <a class="code hl_variable" href="classClient.html#a7ac7f7134aa234289d43e9e1404226fd">_query</a> << <span class="stringliteral">"\n"</span>;</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> cout << <span class="stringliteral">"Host: "</span> << <a class="code hl_variable" href="classClient.html#a2ceac8ae6b5be095334bcfa495da4f4b">_host</a> << <span class="stringliteral">"\n"</span>;</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> cout << <span class="stringliteral">"Location: "</span> << <a class="code hl_variable" href="classClient.html#a612d8a71243e1fa5b29ec952a6804b66">_route</a>-><a class="code hl_function" href="classRoute.html#afd1fe00a85e85ac4964f618f8f2d7bdf">getRoot</a>() << <span class="stringliteral">"\n"</span>;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span>}</div>
|
|
<div class="ttc" id="aclassClient_html_a1a58e00763626d48ee8625ad16a95d08"><div class="ttname"><a href="classClient.html#a1a58e00763626d48ee8625ad16a95d08">Client::debug_header</a></div><div class="ttdeci">void debug_header(void)</div><div class="ttdef"><b>Definition:</b> <a href="debug_8cpp_source.html#l00011">debug.cpp:11</a></div></div>
|
|
<div class="ttc" id="aclassClient_html_a2ceac8ae6b5be095334bcfa495da4f4b"><div class="ttname"><a href="classClient.html#a2ceac8ae6b5be095334bcfa495da4f4b">Client::_host</a></div><div class="ttdeci">string _host</div><div class="ttdef"><b>Definition:</b> <a href="Client_8hpp_source.html#l00011">Client.hpp:11</a></div></div>
|
|
<div class="ttc" id="aclassClient_html_a6033d622cb33f0ea41313e859b621606"><div class="ttname"><a href="classClient.html#a6033d622cb33f0ea41313e859b621606">Client::_method</a></div><div class="ttdeci">string _method</div><div class="ttdef"><b>Definition:</b> <a href="Client_8hpp_source.html#l00011">Client.hpp:11</a></div></div>
|
|
<div class="ttc" id="aclassClient_html_a612d8a71243e1fa5b29ec952a6804b66"><div class="ttname"><a href="classClient.html#a612d8a71243e1fa5b29ec952a6804b66">Client::_route</a></div><div class="ttdeci">Route * _route</div><div class="ttdef"><b>Definition:</b> <a href="Client_8hpp_source.html#l00010">Client.hpp:10</a></div></div>
|
|
<div class="ttc" id="aclassClient_html_a7ac7f7134aa234289d43e9e1404226fd"><div class="ttname"><a href="classClient.html#a7ac7f7134aa234289d43e9e1404226fd">Client::_query</a></div><div class="ttdeci">string _query</div><div class="ttdef"><b>Definition:</b> <a href="Client_8hpp_source.html#l00011">Client.hpp:11</a></div></div>
|
|
<div class="ttc" id="aclassClient_html_a7af52bcb17cc9d34c2207d0e540f6ac1"><div class="ttname"><a href="classClient.html#a7af52bcb17cc9d34c2207d0e540f6ac1">Client::_uri</a></div><div class="ttdeci">string _uri</div><div class="ttdef"><b>Definition:</b> <a href="Client_8hpp_source.html#l00011">Client.hpp:11</a></div></div>
|
|
<div class="ttc" id="aclassRoute_html_afd1fe00a85e85ac4964f618f8f2d7bdf"><div class="ttname"><a href="classRoute.html#afd1fe00a85e85ac4964f618f8f2d7bdf">Route::getRoot</a></div><div class="ttdeci">string getRoot(void)</div><div class="ttdef"><b>Definition:</b> <a href="Route_8cpp_source.html#l00055">Route.cpp:55</a></div></div>
|
|
<div class="ttc" id="adebug_8cpp_html_afb2639655e07c91426064b6bdfff7079"><div class="ttname"><a href="debug_8cpp.html#afb2639655e07c91426064b6bdfff7079">debug_block</a></div><div class="ttdeci">void debug_block(string name, string content)</div><div class="ttdef"><b>Definition:</b> <a href="debug_8cpp_source.html#l00003">debug.cpp:3</a></div></div>
|
|
<div class="ttc" id="awebserv_8hpp_html"><div class="ttname"><a href="webserv_8hpp.html">webserv.hpp</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
|
|
</small></address>
|
|
</body>
|
|
</html>
|
|
|