mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
Added method URL::createWithoutParsing()
This commit is contained in:
parent
3617bca65f
commit
0455110a0e
2 changed files with 19 additions and 1 deletions
|
|
@ -63,6 +63,13 @@ URL::URL (const String& u) : url (u)
|
|||
}
|
||||
}
|
||||
|
||||
URL::URL (const String& u, int) : url (u) {}
|
||||
|
||||
URL URL::createWithoutParsing (const String& u)
|
||||
{
|
||||
return URL (u, 0);
|
||||
}
|
||||
|
||||
URL::URL (const URL& other)
|
||||
: url (other.url),
|
||||
postData (other.postData),
|
||||
|
|
|
|||
|
|
@ -44,7 +44,11 @@ public:
|
|||
/** Creates an empty URL. */
|
||||
URL();
|
||||
|
||||
/** Creates a URL from a string. */
|
||||
/** Creates a URL from a string.
|
||||
This will parse any embedded parameters after a '?' character and store them
|
||||
in the list (see getParameterNames etc). If you don't want this to happen, you
|
||||
can use createWithoutParsing().
|
||||
*/
|
||||
URL (const String& url);
|
||||
|
||||
/** Creates a copy of another URL. */
|
||||
|
|
@ -326,12 +330,19 @@ public:
|
|||
*/
|
||||
static String removeEscapeChars (const String& stringToRemoveEscapeCharsFrom);
|
||||
|
||||
/** Returns a URL without attempting to remove any embedded parameters from the string.
|
||||
This may be necessary if you need to create a request that involves both POST
|
||||
parameters and parameters which are embedded in the URL address itself.
|
||||
*/
|
||||
static URL createWithoutParsing (const String& url);
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
String url, postData;
|
||||
StringArray parameterNames, parameterValues;
|
||||
StringPairArray filesToUpload, mimeTypes;
|
||||
|
||||
URL (const String&, int);
|
||||
void addParameter (const String&, const String&);
|
||||
|
||||
static InputStream* createNativeStream (const String& address, bool isPost, const MemoryBlock& postData,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue