Skip to content

Commit

Permalink
http: add additional malloy::to_string() overload
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Aug 5, 2023
1 parent 251b2ef commit 2c22ad0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/malloy/core/http/http.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include "types.hpp"

/**
* @namespace malloy::http
*
Expand All @@ -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);
}

}

0 comments on commit 2c22ad0

Please sign in to comment.