diff --git a/lib/malloy/core/http/http.hpp b/lib/malloy/core/http/http.hpp index 4223dbd..69513be 100644 --- a/lib/malloy/core/http/http.hpp +++ b/lib/malloy/core/http/http.hpp @@ -1,5 +1,7 @@ #pragma once +#include "types.hpp" + /** * @namespace malloy::http * @@ -8,3 +10,23 @@ namespace malloy::http { } + + +namespace malloy +{ + + /** + * Convert HTTP method/verb to string. + * + * @param method The method. + * @return String representation. + */ + [[nodiscard]] + inline + std::string + to_string(const malloy::http::method method) + { + return boost::beast::http::to_string(method); + } + +} \ No newline at end of file