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
hpack_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 HPACK_P_H
6#define HPACK_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 other Qt classes. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "hpacktable_p.h"
20
21#include <QtCore/qurl.h>
22
23#include <vector>
24#include <optional>
25
26QT_BEGIN_NAMESPACE
27
28class QByteArray;
29
30namespace HPack
31{
32
34HeaderSize header_size(const HttpHeader &header);
35struct BitPattern;
85
86class Q_AUTOTEST_EXPORT Decoder
87{
88public:
90
92
94 {
95 return header;
96 }
97
101
103
104private:
105
110
112 const QByteArray &name,
113 const QByteArray &value);
114
116
119};
120
121std::optional<QUrl> makePromiseKeyUrl(const HttpHeader &requestHeader);
122}
123
124QT_END_NAMESPACE
125
126#endif
HeaderSize header_size(const HttpHeader &header)
Definition hpack.cpp:18
bool operator==(BitPattern lhs, BitPattern rhs)
Definition hpack.cpp:39
std::optional< QUrl > makePromiseKeyUrl(const HttpHeader &requestHeader)
Definition hpack.cpp:533