Webserv
Loading...
Searching...
No Matches
srcs
debug.cpp
Go to the documentation of this file.
1
#include "
webserv.hpp
"
2
3
void
debug_block
(
string
name,
string
content) {
4
string
separator =
"|==================================================="
5
"===========================|\n"
;
6
cout << name << separator.substr(name.length(), string::npos) << content
7
<<
"\n"
8
<< separator;
9
}
10
11
void
Client::debug_header
(
void
) {
12
cout <<
"Method: "
<<
_method
<<
"\n"
;
13
cout <<
"Uri: "
<<
_uri
<<
"\n"
;
14
cout <<
"Query: "
<<
_query
<<
"\n"
;
15
cout <<
"Host: "
<<
_host
<<
"\n"
;
16
cout <<
"Location: "
<<
_route
->
getRoot
() <<
"\n"
;
17
}
Client::debug_header
void debug_header(void)
Definition:
debug.cpp:11
Client::_host
string _host
Definition:
Client.hpp:11
Client::_method
string _method
Definition:
Client.hpp:11
Client::_route
Route * _route
Definition:
Client.hpp:10
Client::_query
string _query
Definition:
Client.hpp:11
Client::_uri
string _uri
Definition:
Client.hpp:11
Route::getRoot
string getRoot(void)
Definition:
Route.cpp:55
debug_block
void debug_block(string name, string content)
Definition:
debug.cpp:3
webserv.hpp
Generated by
1.9.7