Files
spark/src/lib/io/http/HttpMethod.h
T
2023-06-21 11:07:45 -04:00

32 lines
723 B
C++

#pragma once
#ifdef SPARK_ENABLE_CCAPI
#include "lib/core/EnumMacros.h"
#include "lib/core/FMT_IMPL.h"
#include <fmt/format.h>
#include <nlohmann/json.hpp>
#include <ostream>
namespace bts::io::http {
// clang-format off
#define FOR_ALL_VALUES(per_value) \
per_value(HttpMethod, NONE) \
per_value(HttpMethod, GET) \
per_value(HttpMethod, POST)
// clang-format on
/**
* @brief Represents the different types of Http methods
*/
ENUM_CLASS_DEF(HttpMethod, FOR_ALL_VALUES)
#undef FOR_ALL_VALUES
} // namespace bts::io::http
FMT_IMPL(bts::io::http::HttpMethod, m, "{}", m.name());
#endif