27 : pimpl (new Pimpl (*this, url, usePost)), hasCalledConnect (false)
31 WebInputStream::~WebInputStream()
56 hasCalledConnect =
true;
57 return pimpl->connect (listener);
66 for (
int i = 1; i < headerLines.
size(); ++i)
68 const String& headersEntry = headerLines[i];
74 const String previousValue (headerPairs [key]);
75 headerPairs.
set (key, previousValue.isEmpty() ? value : (previousValue +
"," + value));
82 void WebInputStream::createHeadersAndPostData (
const URL& aURL, String& headers, MemoryBlock& data)
84 aURL.createHeadersAndPostData (headers, data);
A special array for holding a list of strings.
static StringArray fromLines(StringRef stringToBreakUp)
Returns an array containing the lines in a given string.
int size() const noexcept
Returns the number of strings in the array.
A container for holding a set of strings which are keyed by another string.
void set(const String &key, const String &value)
Adds or amends a key/value pair.
String upToFirstOccurrenceOf(StringRef substringToEndWith, bool includeSubStringInResult, bool ignoreCase) const
Returns the start of this string, up to the first occurrence of a substring.
bool isNotEmpty() const noexcept
Returns true if the string contains at least one character.
String fromFirstOccurrenceOf(StringRef substringToStartFrom, bool includeSubStringInResult, bool ignoreCase) const
Returns a section of the string starting from a given substring.
Represents a URL and has a bunch of useful functions to manipulate it.