MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / is_http_method

Function is_http_method

libi2pd/HTTP.cpp:51–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 static inline bool is_http_method(std::string_view str)
52 {
53 return std::find(HTTP_METHODS.begin(), HTTP_METHODS.end(), str) != std::end(HTTP_METHODS);
54 }
55
56 static void strsplit(std::string_view line, std::vector<std::string_view> &tokens, char delim, std::size_t limit = 0)
57 {

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected