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

Function readAuthToken

Libraries/HttpClient/HttpClientSession.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static size_t readAuthToken(SC::Span<const char> bytes, size_t offset, size_t end)
61{
62 while (offset < end and isHttpTokenCharacter(bytes[offset]))
63 {
64 offset += 1;
65 }
66 return offset;
67}
68
69static bool asciiStartsWith(SC::StringSpan text, SC::StringSpan prefix)
70{

Callers 3

findAuthChallengeEndFunction · 0.85
parseAuthRealmFunction · 0.85

Calls 1

isHttpTokenCharacterFunction · 0.85

Tested by

no test coverage detected