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

QHttpRequestHeader QHttp::currentRequest (  )  const

Returns the request header of the HTTP request being executed. If the request is one issued by setHost() or close(), it returns an invalid request header, i.e. QHttpRequestHeader::isValid() returns false.

See also:

Definition at line 1813 of file qhttp.cpp.

    Q_D(const QHttp);
    if (!d->pending.isEmpty()) {
        QHttpRequest *r = d->pending.first();
        if (r->hasRequestHeader())
            return r->requestHeader();
    return QHttpRequestHeader();

Generated by  Doxygen 1.6.0   Back to index