MCPcopy Create free account
hub / github.com/SmingHub/Sming / toString

Method toString

Sming/Components/Network/src/Network/Http/HttpHeaderFields.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39String HttpHeaderFields::toString(HttpHeaderFieldName name) const
40{
41 if(name == HTTP_HEADER_UNKNOWN) {
42 return nullptr;
43 }
44
45 if(name < HTTP_HEADER_CUSTOM) {
46 return fieldNameStrings[unsigned(name) - 1];
47 }
48
49 return customFieldNames[unsigned(name) - unsigned(HTTP_HEADER_CUSTOM)];
50}
51
52String HttpHeaderFields::toString(HttpHeaderFieldName name, const String& value) const
53{

Callers

nothing calls this directly

Calls 4

reserveMethod · 0.80
toStringFunction · 0.70
lengthMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected