QHttpHeader::parse -- parse the HTTP header string


#include <QtNetwork/qhttp.h>

bool QHttpHeader::parse(const QString & str);


The QHttpHeader::parse() function shall parse the HTTP header string str for header fields and add the keys/values it finds to the header's values.

If the string is not parsed successfully the QHttpHeader becomes invalid (that can be checked using the isValid() function).

The function shall return true if str was successfully parsed; otherwise it shall return false.

This function is not intended to be used used by applications directly, but may appear among application dependencies as a result of usage of other functions and macros.

See Also