Webserv
Loading...
Searching...
No Matches
debug.cpp
Go to the documentation of this file.
1#include "webserv.hpp"
2
3void 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
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}
void debug_header(void)
Definition: debug.cpp:11
string _host
Definition: Client.hpp:11
string _method
Definition: Client.hpp:11
Route * _route
Definition: Client.hpp:10
string _query
Definition: Client.hpp:11
string _uri
Definition: Client.hpp:11
string getRoot(void)
Definition: Route.cpp:55
void debug_block(string name, string content)
Definition: debug.cpp:3