27 : pimpl (std::make_unique<Pimpl> (*this, url, usePost))
55 hasCalledConnect =
true;
56 return pimpl->connect (listener);
64 for (
const auto& headersEntry : headerLines)
66 if (headersEntry.isNotEmpty())
68 const auto key = headersEntry.upToFirstOccurrenceOf (
": ",
false,
false);
70 auto value = [&headersEntry, &headerPairs, &key]
72 const auto currentValue = headersEntry.fromFirstOccurrenceOf (
": ",
false,
false);
73 const auto previousValue = headerPairs [key];
75 if (previousValue.isNotEmpty())
76 return previousValue +
"," + currentValue;
81 headerPairs.set (key, value);
88void WebInputStream::createHeadersAndPostData (
const URL& aURL,
91 bool addParametersToBody)
93 aURL.createHeadersAndPostData (headers, data, addParametersToBody);
97 [[maybe_unused]]
int bytesSent,
98 [[maybe_unused]]
int totalBytes)
static StringArray fromLines(StringRef stringToBreakUp)