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

void QHttpResponseHeader::setStatusLine ( int  code,
const QString text = QString(),
int  majorVer = 1,
int  minorVer = 1 
)

Since:
4.1
Sets the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer.

See also:
statusCode() reasonPhrase() majorVersion() minorVersion()

Definition at line 1052 of file qhttp.cpp.

References QHttpHeader::setValid().

Referenced by QHttpResponseHeader().

{
    Q_D(QHttpResponseHeader);
    setValid(true);
    d->statCode = code;
    d->reasonPhr = text;
    d->majVer = majorVer;
    d->minVer = minorVer;
}


Generated by  Doxygen 1.6.0   Back to index