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
5#ifndef QHTTPPROTOCOLHANDLER_H
6#define QHTTPPROTOCOLHANDLER_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of the Network Access API. This header file may change from
14// version to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtNetwork/private/qtnetworkglobal_p.h>
20#include <private/qabstractprotocolhandler_p.h>
21
22#include <QtCore/qbytearray.h>
23
24QT_REQUIRE_CONFIG(http);
25
26QT_BEGIN_NAMESPACE
27
28class QHttpProtocolHandler : public QAbstractProtocolHandler {
29public:
30 QHttpProtocolHandler(QHttpNetworkConnectionChannel *channel);
31
32private:
33 virtual void _q_receiveReply() override;
34 virtual void _q_readyRead() override;
35 virtual bool sendRequest() override;
36
37 QByteArray m_header;
38};
39
40QT_END_NAMESPACE
41
42#endif
43

source code of qtbase/src/network/access/qhttpprotocolhandler_p.h