MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / getMethodName

Method getMethodName

Libraries/HttpClient/HttpClient.cpp:826–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826const char* SC::HttpClientRequest::getMethodName(Method method)
827{
828 switch (method)
829 {
830 case HttpGET: return "GET";
831 case HttpPOST: return "POST";
832 case HttpPUT: return "PUT";
833 case HttpHEAD: return "HEAD";
834 case HttpDELETE: return "DELETE";
835 case HttpPATCH: return "PATCH";
836 case HttpOPTIONS: return "OPTIONS";
837 }
838 return "UNKNOWN";
839}
840
841SC::Result SC::HttpClientRequest::validate() const { return validateRequestShape(*this); }
842

Callers 1

requestPolicyNamesMethod · 0.80

Calls

no outgoing calls

Tested by 1

requestPolicyNamesMethod · 0.64