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

Method getNumCookies

Libraries/HttpClient/HttpClientSession.cpp:1076–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074 StringSpan attribute;
1075 StringSpan next;
1076 if (splitOnce(remaining, ';', attribute, next))
1077 {
1078 remaining = next;
1079 }
1080 else
1081 {
1082 attribute = remaining;
1083 remaining = StringSpan(remaining.getEncoding());
1084 }
1085
1086 attribute = trimAsciiWhiteSpace(attribute);
1087 StringSpan attributeName;
1088 StringSpan attributeValue;
1089 if (splitOnce(attribute, '=', attributeName, attributeValue))
1090 {
1091 attributeName = trimAsciiWhiteSpace(attributeName);
1092 attributeValue = trimAsciiWhiteSpace(attributeValue);
1093 if (sessionAsciiEqualsIgnoreCase(attributeName, StringSpan("Domain")))
1094 {
1095 if (attributeValue.sizeInBytes() > 0 and attributeValue.toCharSpan()[0] == '.')

Callers 2

sessionLayerMethod · 0.80
saneMainFunction · 0.80

Calls

no outgoing calls

Tested by 1

sessionLayerMethod · 0.64