@@ -278,12 +278,45 @@ QStringList THttpRequest::allItemValues(const QString &name, const QList<QPair<Q
278278/* !
279279 Returns the list of query string values whose name is equal to \a name from
280280 the URL.
281+ \see QStringList queryItemList()
281282 */
282283QStringList THttpRequest::allQueryItemValues (const QString &name) const
283284{
284285 return allItemValues (name, d->queryItems );
285286}
286287
288+ /* !
289+ Returns the list of query string value whose key is equal to \a key, such as
290+ "foo[]", from the URL.
291+ \see QStringList THttpRequest::allQueryItemValues()
292+ */
293+ QStringList THttpRequest::queryItemList (const QString &key) const
294+ {
295+ QString k = key;
296+ if (!k.endsWith (" []" )) {
297+ k += QLatin1String (" []" );
298+ }
299+ return allQueryItemValues (k);
300+ }
301+
302+ /* !
303+ Returns the list of query value whose key is equal to \a key, such as
304+ "foo[]", from the URL.
305+ */
306+ QVariantList THttpRequest::queryItemVariantList (const QString &key) const
307+ {
308+ return itemVariantList (key, d->queryItems );
309+ }
310+
311+ /* !
312+ Returns the map of query value whose key is equal to \a key from
313+ the URL.
314+ */
315+ QVariantMap THttpRequest::queryItems (const QString &key) const
316+ {
317+ return itemMap (key, d->queryItems );
318+ }
319+
287320
288321QVariantMap THttpRequest::itemMap (const QList<QPair<QString, QString>> &items)
289322{
@@ -341,6 +374,7 @@ QString THttpRequest::formItemValue(const QString &name, const QString &defaultV
341374/* !
342375 Returns the list of string value whose name is equal to \a name from the
343376 form data.
377+ \see QStringList formItemList()
344378 */
345379QStringList THttpRequest::allFormItemValues (const QString &name) const
346380{
@@ -350,6 +384,7 @@ QStringList THttpRequest::allFormItemValues(const QString &name) const
350384/* !
351385 Returns the list of string value whose key is equal to \a key, such as
352386 "foo[]", from the form data.
387+ \see QStringList allFormItemValues()
353388 */
354389QStringList THttpRequest::formItemList (const QString &key) const
355390{
0 commit comments