| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // Copyright (C) 2014 BlackBerry Limited. All rights reserved. |
| 3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 4 | // Qt-Security score:significant reason:default |
| 5 | |
| 6 | #ifndef QHTTPPROTOCOLHANDLER_H |
| 7 | #define QHTTPPROTOCOLHANDLER_H |
| 8 | |
| 9 | // |
| 10 | // W A R N I N G |
| 11 | // ------------- |
| 12 | // |
| 13 | // This file is not part of the Qt API. It exists for the convenience |
| 14 | // of the Network Access API. This header file may change from |
| 15 | // version to version without notice, or even be removed. |
| 16 | // |
| 17 | // We mean it. |
| 18 | // |
| 19 | |
| 20 | #include <QtNetwork/private/qtnetworkglobal_p.h> |
| 21 | #include <private/qabstractprotocolhandler_p.h> |
| 22 | |
| 23 | #include <QtCore/qbytearray.h> |
| 24 | |
| 25 | QT_REQUIRE_CONFIG(http); |
| 26 | |
| 27 | QT_BEGIN_NAMESPACE |
| 28 | |
| 29 | class QHttpProtocolHandler : public QAbstractProtocolHandler { |
| 30 | public: |
| 31 | QHttpProtocolHandler(QHttpNetworkConnectionChannel *channel); |
| 32 | |
| 33 | private: |
| 34 | virtual void _q_receiveReply() override; |
| 35 | virtual void _q_readyRead() override; |
| 36 | virtual bool sendRequest() override; |
| 37 | |
| 38 | QByteArray m_header; |
| 39 | }; |
| 40 | |
| 41 | QT_END_NAMESPACE |
| 42 | |
| 43 | #endif |
| 44 | |