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

Method getProtocolName

Libraries/HttpClient/HttpClient.cpp:1184–1193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182}
1183
1184const char* SC::HttpClientResponse::getProtocolName(Protocol protocol)
1185{
1186 switch (protocol)
1187 {
1188 case Protocol::Unknown: return "unknown";
1189 case Protocol::Http11: return "http/1.1";
1190 case Protocol::Http2: return "h2";
1191 }
1192 return "unknown";
1193}
1194
1195SC::Result SC::HttpClient::init()
1196{

Callers 3

responseHeaderHelpersMethod · 0.80
saneMainFunction · 0.80
saneMainFunction · 0.80

Calls

no outgoing calls

Tested by 1

responseHeaderHelpersMethod · 0.64