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

Function httpContentEncodingName

Libraries/Http/HttpConnection.cpp:135–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133namespace SC
134{
135StringSpan httpContentEncodingName(HttpContentEncoding encoding)
136{
137 switch (encoding)
138 {
139 case HttpContentEncoding::Identity: return "identity";
140 case HttpContentEncoding::GZip: return "gzip";
141 case HttpContentEncoding::Deflate: return "deflate";
142 }
143 return {};
144}
145
146Result httpContentEncodingFromHeader(StringSpan headerValue, HttpContentEncoding& encoding)
147{

Callers 1

setCompressedBodyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected