Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
removed_api.cpp
Go to the documentation of this file.
1// Copyright (c) 2023 LLC «V Kontakte»
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#define QT_NETWORK_BUILD_REMOVED_API
5
6#include "qtnetworkglobal.h"
7
9
10#if QT_NETWORK_REMOVED_SINCE(6, 7)
11
12#include "qhostinfo.h"
13
14// static
15int QHostInfo::lookupHost(const QString &name, QObject *receiver, const char *member)
16{
17 const auto *r = receiver;
18 return lookupHost(name, r, member);
19}
20
21
22#include "qnetworkreply.h"
23
24QByteArray QNetworkReply::rawHeader(const QByteArray &headerName) const
25{
26 return rawHeader(qToByteArrayViewIgnoringNull(headerName));
27}
28
29bool QNetworkReply::hasRawHeader(const QByteArray &headerName) const
30{
32}
33
34#include "qnetworkrequest.h"
35
37{
38 return rawHeader(qToByteArrayViewIgnoringNull(headerName));
39}
40
41bool QNetworkRequest::hasRawHeader(const QByteArray &headerName) const
42{
44}
45
46#include "qnetworkcookie.h"
47
48QList<QNetworkCookie> QNetworkCookie::parseCookies(const QByteArray &cookieString)
49{
50 return parseCookies(qToByteArrayViewIgnoringNull(cookieString));
51}
52
53// #include "qotherheader.h"
54// // implement removed functions from qotherheader.h
55// order sections alphabetically
56
57#endif // QT_NETWORK_REMOVED_SINCE(6, 7)
58
59#if QT_NETWORK_REMOVED_SINCE(6, 8)
60
61#if QT_CONFIG(dnslookup)
62# include "qdnslookup.h" // inlined API
63#endif
64#include "qnetworkrequest.h" // inlined API
65
66// #include "qotherheader.h"
67// // implement removed functions from qotherheader.h
68// order sections alphabetically
69
70#endif // QT_NETWORK_REMOVED_SINCE(6, 8)
\inmodule QtCore
Definition qbytearray.h:57
static int lookupHost(const QString &name, const QObject *receiver, const char *member)
Looks up the IP address(es) associated with host name name, and returns an ID for the lookup.
static QList< QNetworkCookie > parseCookies(QByteArrayView cookieString)
Parses the cookie string cookieString as received from a server response in the "Set-Cookie:" header.
bool hasRawHeader(QAnyStringView headerName) const
Returns true if the raw header of name headerName was sent by the remote server.
QByteArray rawHeader(QAnyStringView headerName) const
Returns the raw contents of the header headerName as sent by the remote server.
bool hasRawHeader(QAnyStringView headerName) const
Returns true if the raw header headerName is present in this network request.
QByteArray rawHeader(QAnyStringView headerName) const
Returns the raw form of header headerName.
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QByteArrayView qToByteArrayViewIgnoringNull(const QByteArrayLike &b) noexcept
GLboolean r
[2]
GLuint name