| 133 | namespace SC |
| 134 | { |
| 135 | StringSpan 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 | |
| 146 | Result httpContentEncodingFromHeader(StringSpan headerValue, HttpContentEncoding& encoding) |
| 147 | { |