Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
http2streams_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef HTTP2STREAMS_P_H
6#define HTTP2STREAMS_P_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 "http2frames_p.h"
20#include "hpack_p.h"
21
22#include <private/qhttpnetworkconnectionchannel_p.h>
23#include <private/qhttpnetworkrequest_p.h>
24
25#include <QtCore/qstring.h>
26
27#include <vector>
28
30
31QT_BEGIN_NAMESPACE
32
33class QNonContiguousByteDevice;
34
35namespace Http2
36{
37
38struct Q_AUTOTEST_EXPORT Stream
39{
48
49 Stream();
50 // That's a ctor for a client-initiated stream:
53 // That's a reserved stream, created by PUSH_PROMISE from a server:
55
56 QHttpNetworkReply *reply() const;
57 const QHttpNetworkRequest &request() const;
60 uchar weight() const;
61
63
66 // Signed as window sizes can become negative:
69
71 QString key; // for PUSH_PROMISE
72};
73
75{
77 // PUSH_PROMISE has its own HEADERS,
78 // usually similar to what request has:
80 // Response has its own (normal) HEADERS:
82 // DATA frames on a promised stream:
84};
85
86} // namespace Http2
87
88QT_END_NAMESPACE
89
90#endif
QT_REQUIRE_CONFIG(thread)
std::vector< Frame > dataFrames
HPack::HttpHeader responseHeader
HPack::HttpHeader pushHeader