src/httpserver.cpp
std::string RequestMethodString(HTTPRequest::RequestMethod m)
{
    switch (m) {
    case HTTPRequest::GET:
        return "GET";
        break;
    case HTTPRequest::POST:
        return "POST";
        break;
    case HTTPRequest::HEAD:
        return "HEAD";
        break;
    case HTTPRequest::PUT:
        return "PUT";
        break;
    default:
        return "unknown";
    }
}
/** HTTP request method as string - use for logging only */
HTTP request method as string - use for logging only
HTTP request method as string - use for logging only
std::string RequestMethodString(HTTPRequest::RequestMethod m)
{
    switch (m) {
    case HTTPRequest::GET:
        return "GET";
        break;
    case HTTPRequest::POST:
        return "POST";
        break;
    case HTTPRequest::HEAD:
        return "HEAD";
        break;
    case HTTPRequest::PUT:
        return "PUT";
        break;
    default:
        return "unknown";
    }
}
std :: string RequestMethodString ( HTTPRequest :: RequestMethod m ) { switch ( m ) { case HTTPRequest :: GET : return " " ; break ; case HTTPRequest :: POST : return " " ; break ; case HTTPRequest :: HEAD : return " " ; break ; case HTTPRequest :: PUT : return " " ; break ; default : return " " ; } }
HTTP request method as string - use for logging only
HTTP request method as string - use for logging only