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

QStringList QHttpHeader::keys (  )  const [inherited]

Returns a list of the keys in the HTTP header.

See also:
hasKey()

Definition at line 711 of file qhttp.cpp.

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

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


Generated by  Doxygen 1.6.0   Back to index