| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- // qhttpheaders.sip generated by MetaSIP
- //
- // This file is part of the QtNetwork Python extension module.
- //
- // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
- //
- // This file is part of PyQt6.
- //
- // This file may be used under the terms of the GNU General Public License
- // version 3.0 as published by the Free Software Foundation and appearing in
- // the file LICENSE included in the packaging of this file. Please review the
- // following information to ensure the GNU General Public License version 3.0
- // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
- //
- // If you do not wish to use this file under the terms of the GPL version 3.0
- // then you may purchase a commercial license. For more information contact
- // info@riverbankcomputing.com.
- //
- // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- %If (Qt_6_7_0 -)
- class QHttpHeaders
- {
- %TypeHeaderCode
- #include <qhttpheaders.h>
- %End
- public:
- enum class WellKnownHeader
- {
- AIM,
- Accept,
- AcceptAdditions,
- AcceptCH,
- AcceptDatetime,
- AcceptEncoding,
- AcceptFeatures,
- AcceptLanguage,
- AcceptPatch,
- AcceptPost,
- AcceptRanges,
- AcceptSignature,
- AccessControlAllowCredentials,
- AccessControlAllowHeaders,
- AccessControlAllowMethods,
- AccessControlAllowOrigin,
- AccessControlExposeHeaders,
- AccessControlMaxAge,
- AccessControlRequestHeaders,
- AccessControlRequestMethod,
- Age,
- Allow,
- ALPN,
- AltSvc,
- AltUsed,
- Alternates,
- ApplyToRedirectRef,
- AuthenticationControl,
- AuthenticationInfo,
- Authorization,
- CacheControl,
- CacheStatus,
- CalManagedID,
- CalDAVTimezones,
- CapsuleProtocol,
- CDNCacheControl,
- CDNLoop,
- CertNotAfter,
- CertNotBefore,
- ClearSiteData,
- ClientCert,
- ClientCertChain,
- Close,
- Connection,
- ContentDigest,
- ContentDisposition,
- ContentEncoding,
- ContentID,
- ContentLanguage,
- ContentLength,
- ContentLocation,
- ContentRange,
- ContentSecurityPolicy,
- ContentSecurityPolicyReportOnly,
- ContentType,
- Cookie,
- CrossOriginEmbedderPolicy,
- CrossOriginEmbedderPolicyReportOnly,
- CrossOriginOpenerPolicy,
- CrossOriginOpenerPolicyReportOnly,
- CrossOriginResourcePolicy,
- DASL,
- Date,
- DAV,
- DeltaBase,
- Depth,
- Destination,
- DifferentialID,
- DPoP,
- DPoPNonce,
- EarlyData,
- ETag,
- Expect,
- ExpectCT,
- Expires,
- Forwarded,
- From,
- Hobareg,
- Host,
- If,
- IfMatch,
- IfModifiedSince,
- IfNoneMatch,
- IfRange,
- IfScheduleTagMatch,
- IfUnmodifiedSince,
- IM,
- IncludeReferredTokenBindingID,
- KeepAlive,
- Label,
- LastEventID,
- LastModified,
- Link,
- Location,
- LockToken,
- MaxForwards,
- MementoDatetime,
- Meter,
- MIMEVersion,
- Negotiate,
- NEL,
- ODataEntityId,
- ODataIsolation,
- ODataMaxVersion,
- ODataVersion,
- OptionalWWWAuthenticate,
- OrderingType,
- Origin,
- OriginAgentCluster,
- OSCORE,
- OSLCCoreVersion,
- Overwrite,
- PingFrom,
- PingTo,
- Position,
- Prefer,
- PreferenceApplied,
- Priority,
- ProxyAuthenticate,
- ProxyAuthenticationInfo,
- ProxyAuthorization,
- ProxyStatus,
- PublicKeyPins,
- PublicKeyPinsReportOnly,
- Range,
- RedirectRef,
- Referer,
- Refresh,
- ReplayNonce,
- ReprDigest,
- RetryAfter,
- ScheduleReply,
- ScheduleTag,
- SecPurpose,
- SecTokenBinding,
- SecWebSocketAccept,
- SecWebSocketExtensions,
- SecWebSocketKey,
- SecWebSocketProtocol,
- SecWebSocketVersion,
- Server,
- ServerTiming,
- SetCookie,
- Signature,
- SignatureInput,
- SLUG,
- SoapAction,
- StatusURI,
- StrictTransportSecurity,
- Sunset,
- SurrogateCapability,
- SurrogateControl,
- TCN,
- TE,
- Timeout,
- Topic,
- Traceparent,
- Tracestate,
- Trailer,
- TransferEncoding,
- TTL,
- Upgrade,
- Urgency,
- UserAgent,
- VariantVary,
- Vary,
- Via,
- WantContentDigest,
- WantReprDigest,
- WWWAuthenticate,
- XContentTypeOptions,
- XFrameOptions,
- AcceptCharset,
- CPEPInfo,
- Pragma,
- ProtocolInfo,
- ProtocolQuery,
- };
- QHttpHeaders();
- QHttpHeaders(const QHttpHeaders &other);
- ~QHttpHeaders();
- void swap(QHttpHeaders &other /Constrained/);
- bool append(QAnyStringView name, QAnyStringView value);
- bool append(QHttpHeaders::WellKnownHeader name, QAnyStringView value);
- bool insert(qsizetype i, QAnyStringView name, QAnyStringView value);
- bool insert(qsizetype i, QHttpHeaders::WellKnownHeader name, QAnyStringView value);
- bool replace(qsizetype i, QAnyStringView name, QAnyStringView newValue);
- bool replace(qsizetype i, QHttpHeaders::WellKnownHeader name, QAnyStringView newValue);
- bool contains(QAnyStringView name) const;
- bool contains(QHttpHeaders::WellKnownHeader name) const;
- void clear();
- void removeAll(QAnyStringView name);
- void removeAll(QHttpHeaders::WellKnownHeader name);
- void removeAt(qsizetype i);
- QByteArrayView value(QAnyStringView name, QByteArrayView defaultValue = {}) const;
- QByteArrayView value(QHttpHeaders::WellKnownHeader name, QByteArrayView defaultValue = {}) const;
- QList<QByteArray> values(QAnyStringView name) const;
- QList<QByteArray> values(QHttpHeaders::WellKnownHeader name) const;
- QByteArrayView valueAt(qsizetype i) const;
- QString nameAt(qsizetype i) const [QLatin1StringView (qsizetype i)];
- QByteArray combinedValue(QAnyStringView name) const;
- QByteArray combinedValue(QHttpHeaders::WellKnownHeader name) const;
- qsizetype size() const;
- void reserve(qsizetype size);
- bool isEmpty() const;
- static QByteArrayView wellKnownHeaderName(QHttpHeaders::WellKnownHeader name);
- static QHttpHeaders fromListOfPairs(const QList<std::pair<QByteArray, QByteArray>> &headers);
- QList<std::pair<QByteArray, QByteArray>> toListOfPairs() const;
- %If (Qt_6_8_0 -)
- bool replaceOrAppend(QHttpHeaders::WellKnownHeader name, QAnyStringView newValue);
- %End
- %If (Qt_6_8_0 -)
- bool replaceOrAppend(QAnyStringView name, QAnyStringView newValue);
- %End
- %If (Qt_6_10_0 -)
- std::optional<qint64> intValue(QHttpHeaders::WellKnownHeader name) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<qint64> intValue(QAnyStringView name) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<QList<qint64>> intValues(QHttpHeaders::WellKnownHeader name) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<QList<qint64>> intValues(QAnyStringView name) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<qint64> intValueAt(qsizetype i) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<QDateTime> dateTimeValue(QHttpHeaders::WellKnownHeader name) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<QDateTime> dateTimeValue(QAnyStringView name) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<QList<QDateTime>> dateTimeValues(QHttpHeaders::WellKnownHeader name) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<QList<QDateTime>> dateTimeValues(QAnyStringView name) const;
- %End
- %If (Qt_6_10_0 -)
- std::optional<QDateTime> dateTimeValueAt(qsizetype i) const;
- %End
- %If (Qt_6_10_0 -)
- void setDateTimeValue(QHttpHeaders::WellKnownHeader name, const QDateTime &dateTime);
- %End
- %If (Qt_6_10_0 -)
- void setDateTimeValue(QAnyStringView name, const QDateTime &dateTime);
- %End
- };
- %End
|