MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / addPar

Method addPar

lib/AsyncHttpClient/src/AsyncHttpClient.cpp:411–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411void AsyncHttpClient::addPar(const String& name, const String& value)
412{
413 /* Name must be given, value could be empty. */
414 if (false == name.isEmpty())
415 {
416 if (false == m_urlEncodedPars.isEmpty())
417 {
418 m_urlEncodedPars += "&";
419 }
420
421 m_urlEncodedPars += urlEncode(name);
422 m_urlEncodedPars += "=";
423 m_urlEncodedPars += urlEncode(value);
424 }
425}
426
427void AsyncHttpClient::clearPar()
428{

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected