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
4#ifndef HPACK_P_H
5#define HPACK_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "hpacktable_p.h"
19
20#include <QtCore/qglobal.h>
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;
83
84class Q_AUTOTEST_EXPORT Decoder
85{
86public:
88
90
92 {
93 return header;
94 }
95
97
99
100private:
101
106
108 const QByteArray &name,
109 const QByteArray &value);
110
112
115};
116
117std::optional<QUrl> makePromiseKeyUrl(const HttpHeader &requestHeader);
118}
119
120QT_END_NAMESPACE
121
122#endif
HeaderSize header_size(const HttpHeader &header)
Definition hpack.cpp:17
bool operator==(BitPattern lhs, BitPattern rhs)
Definition hpack.cpp:38
std::optional< QUrl > makePromiseKeyUrl(const HttpHeader &requestHeader)
Definition hpack.cpp:507