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

Method hasTransferCoding

Libraries/HttpClient/HttpClient.cpp:1170–1182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1168 const Span<const char> bytes = iterator.headerValue.toCharSpan();
1169 while (iterator.valueOffset < bytes.sizeInBytes() and
1170 (bytes[iterator.valueOffset] == ',' or bytes[iterator.valueOffset] == ' ' or
1171 bytes[iterator.valueOffset] == '\t'))
1172 {
1173 iterator.valueOffset += 1;
1174 }
1175
1176 const size_t tokenStart = iterator.valueOffset;
1177 while (iterator.valueOffset < bytes.sizeInBytes() and bytes[iterator.valueOffset] != ',')
1178 {
1179 iterator.valueOffset += 1;
1180 }
1181
1182 const StringSpan token = trimAsciiWhiteSpace({bytes.data() + tokenStart, iterator.valueOffset - tokenStart});
1183 if (iterator.valueOffset < bytes.sizeInBytes() and bytes[iterator.valueOffset] == ',')
1184 {
1185 iterator.valueOffset += 1;

Callers 1

responseHeaderHelpersMethod · 0.80

Calls

no outgoing calls

Tested by 1

responseHeaderHelpersMethod · 0.64