luna/private/router_impl.cpp
luna::response make_response_(luna::response &&response, luna::headers &headers_)
{
    for(const auto header : headers_)
    {
        // don't override anything already here
        if(response.headers.count(header.first) == 0)
        {
            response.headers[header.first] = header.second;
        }
    }
    return response;
}
// Helper function to tack on headers
Helper function to tack on headers
Helper function to tack on headers
luna::response make_response_(luna::response &&response, luna::headers &headers_)
{
    for(const auto header : headers_)
    {
        if(response.headers.count(header.first) == 0)
        {
            response.headers[header.first] = header.second;
        }
    }
    return response;
}
luna :: response make_response_ ( luna :: response && response , luna :: headers & headers_ ) { for ( const auto header : headers_ ) { if ( response . headers . count ( header . first ) == 0 ) { response . headers [ header . first ] = header . second ; } } return response ; }
Helper function to tack on headers
Helper function to tack on headers
// don't override anything already here