MCPcopy Create free account
hub / github.com/Heltec-Aaron-Lee/WiFi_Kit_series / header

Method header

libraries/HTTPClient/src/HTTPClient.cpp:1034–1041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032}
1033
1034String HTTPClient::header(const char *name) {
1035 for (size_t i = 0; i < _currentHeaders.size(); ++i) {
1036 if (_currentHeaders[i].key.equalsIgnoreCase(name)) {
1037 return _currentHeaders[i].value;
1038 }
1039 }
1040 return String();
1041}
1042
1043String HTTPClient::header(size_t i) {
1044 if (i < _currentHeaders.size()) {

Callers 2

handleUpdateMethod · 0.45
setupMethod · 0.45

Calls 3

StringClass · 0.85
equalsIgnoreCaseMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected