shower.cpp
// This is just a helper function to preety-print the Cookies that one of the enpoints shall receive.
This is just a helper function to preety-print the Cookies that one of the enpoints shall receive.
This is just a helper function to preety - print the Cookies that one of the enpoints shall receive .
void printCookies(const Http::Request& req) {
    auto cookies = req.cookies();
    std::cout << "Cookies: [" << std::endl;
    const std::string indent(4, ' ');
    for (const auto& c: cookies) {
        std::cout << indent << c.name << " = " << c.value << std::endl;
    }
    std::cout << "]" << std::endl;
}
void printCookies ( const Http :: Request & req ) { auto cookies = req . cookies ( ) ; std :: cout << " " << std :: endl ; const std :: string indent ( 4 , ' ' ) ; for ( const auto & c : cookies ) { std :: cout << indent << c . name << " " << c . value << std :: endl ; } std :: cout << " " << std :: endl ; }
This is just a helper function to preety-print the Cookies that one of the enpoints shall receive.
This is just a helper function to preety - print the Cookies that one of the enpoints shall receive .