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.
 
 
 
 

19 lines
554 B

#include "webserv.hpp"
void print_block(string name, string content) {
if (!DEBUG)
return ;
string separator = "|==================================================="
"===========================|\n";
cout << name << separator.substr(name.length(), string::npos) << content
<< "\n"
<< separator;
}
void Client::print_header(void) {
cout << "Method: " << _method << "\n";
cout << "Uri: " << _uri << "\n";
cout << "Query: " << _query << "\n";
cout << "Host: " << _host << "\n";
cout << "Location: " << _route->getRoot() << "\n";
}