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

Method onField

Sming/Components/Network/src/Network/Http/BasicHttpHeaders.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54int BasicHttpHeaders::onField(const char* at, size_t length)
55{
56 if(count_ >= ARRAY_SIZE(headers)) {
57 return -1;
58 }
59 const_cast<char*>(at)[length] = '\0';
60 headers[count_].name = at;
61 return 0;
62}
63
64int BasicHttpHeaders::staticOnValue(http_parser* parser, const char* at, size_t length)
65{

Callers 1

staticOnFieldMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected