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

Function isValidRedirectMode

Libraries/HttpClient/HttpClient.cpp:249–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249static bool isValidRedirectMode(SC::HttpClientRequestRedirectOptions::Mode mode)
250{
251 switch (mode)
252 {
253 case SC::HttpClientRequestRedirectOptions::NoRedirects:
254 case SC::HttpClientRequestRedirectOptions::FollowGetHead:
255 case SC::HttpClientRequestRedirectOptions::FollowAll: return true;
256 }
257 return false;
258}
259
260static bool isValidProxyMode(SC::HttpClientRequestProxyOptions::Mode mode)
261{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected