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

Function isValidProxyMode

Libraries/HttpClient/HttpClient.cpp:260–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260static bool isValidProxyMode(SC::HttpClientRequestProxyOptions::Mode mode)
261{
262 switch (mode)
263 {
264 case SC::HttpClientRequestProxyOptions::Default:
265 case SC::HttpClientRequestProxyOptions::NoProxy:
266 case SC::HttpClientRequestProxyOptions::Http: return true;
267 }
268 return false;
269}
270
271static bool hasHttpHeaderUnsafeBytes(SC::StringSpan value)
272{

Callers 1

validateProxyOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected