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.cpp
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:critical reason:network-protocol
4
6
7#include "private/qhttp2protocolhandler_p.h"
8#include "private/qhttpnetworkreply_p.h"
9
10#include <QtCore/qdebug.h>
11
13
14namespace Http2
15{
16
18{
19}
20
28
30 : streamID(id),
31 // sendWindow is 0, this stream only receives data
35{
36}
37
39{
40 return httpPair.second;
41}
42
44{
45 return httpPair.first;
46}
47
52
57
59{
60 switch (priority()) {
62 return 0;
64 return 127;
66 default:
67 return 255;
68 }
69}
70
75
76} // namespace Http2
77
78QT_END_NAMESPACE