Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QStringList QHttpHeader::allValues ( const QString key  )  const [inherited]

Returns all the entries with the given key. If no entry has this key, an empty string list is returned.

Definition at line 693 of file qhttp.cpp.

References QList< T >::append(), and QList< T >::constEnd().

{
    Q_D(const QHttpHeader);
    QStringList valueList;
    QList<QPair<QString, QString> >::ConstIterator it = d->values.constBegin();
    while (it != d->values.constEnd()) {
        if ((*it).first == key)
            valueList.append((*it).second);
        ++it;
    }
    return valueList;
}


Generated by  Doxygen 1.6.0   Back to index