MCPcopy Create free account
hub / github.com/JoaoLopesF/RemoteDebug / hasMandatoryHeader

Method hasMandatoryHeader

src/utility/WebSocketsServer.cpp:702–708  ·  view source on GitHub ↗

* returns an indicator whether the given named header exists in the configured _mandatoryHttpHeaders collection * @param headerName String ///< the name of the header being checked */

Source from the content-addressed store, hash-verified

700 * @param headerName String ///< the name of the header being checked
701 */
702bool WebSocketsServer::hasMandatoryHeader(String headerName) {
703 for (size_t i = 0; i < _mandatoryHttpHeaderCount; i++) {
704 if (_mandatoryHttpHeaders[i].equalsIgnoreCase(headerName))
705 return true;
706 }
707 return false;
708}
709
710
711/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected