MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / methodToString

Function methodToString

plugins/http/macro-action-http.cpp:181–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181static constexpr std::string_view methodToString(MacroActionHttp::Method method)
182{
183 switch (method) {
184 case MacroActionHttp::Method::GET:
185 return "GET";
186 case MacroActionHttp::Method::POST:
187 return "POST";
188 case MacroActionHttp::Method::PUT:
189 return "PUT";
190 case MacroActionHttp::Method::PATCH:
191 return "PATCH";
192 case MacroActionHttp::Method::DELETE:
193 return "DELETE";
194 default:
195 break;
196 }
197 return "unknown";
198}
199
200static std::string stringListToString(const StringList &list)
201{

Callers 1

LogActionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected