void RequestParser::httpResponse(QHttpResponseHeader header, QByteArray content) { m_responseHttpVersion = header.majorVersion() + header.minorVersion() / 10.0; emit write(header.toString().toUtf8()); emit write(content); }
void RequestParser::httpResponseHead(QHttpResponseHeader header) { m_responseHttpVersion = header.majorVersion() + header.minorVersion() / 10.0; emit write(header.toString().toUtf8()); }
/*! * \reimp */ void QxtHttpServerConnector::writeHeaders(QIODevice* device, const QHttpResponseHeader& header) { if (header.majorVersion() == 0) return; // 0.9 doesn't have headers device->write(header.toString().toUtf8()); }