Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qnetworkrequest.cpp File Reference
#include "qnetworkrequest.h"
#include "qnetworkrequest_p.h"
#include "qplatformdefs.h"
#include "qnetworkcookie.h"
#include "qsslconfiguration.h"
#include "QtCore/qdatetime.h"
#include "QtCore/qlocale.h"
#include "QtCore/qshareddata.h"
#include "QtCore/qtimezone.h"
#include "QtCore/private/qtools_p.h"
#include <ctype.h>
#include <algorithm>
+ Include dependency graph for qnetworkrequest.cpp:

Go to the source code of this file.

Classes

class  QNetworkRequestPrivate
 

Functions

static QByteArray headerName (QNetworkRequest::KnownHeaders header)
 
static QByteArray headerValue (QNetworkRequest::KnownHeaders header, const QVariant &value)
 
static int parseHeaderName (const QByteArray &headerName)
 
static QVariant parseHttpDate (const QByteArray &raw)
 
static QVariant parseCookieHeader (const QByteArray &raw)
 
static QVariant parseETag (const QByteArray &raw)
 
static QVariant parseIfMatch (const QByteArray &raw)
 
static QVariant parseIfNoneMatch (const QByteArray &raw)
 
static QVariant parseHeaderValue (QNetworkRequest::KnownHeaders header, const QByteArray &value)
 
static int name_to_month (const char *month_str)
 

Function Documentation

◆ headerName()

◆ headerValue()

◆ name_to_month()

static int name_to_month ( const char *  month_str)
static

Definition at line 1440 of file qnetworkrequest.cpp.

Referenced by QNetworkHeadersPrivate::fromHttpDate().

+ Here is the caller graph for this function:

◆ parseCookieHeader()

static QVariant parseCookieHeader ( const QByteArray raw)
static

Definition at line 1196 of file qnetworkrequest.cpp.

References QVariant::fromValue(), QNetworkCookie::parseCookies(), QList< T >::size(), and QByteArray::split().

Referenced by parseHeaderValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseETag()

static QVariant parseETag ( const QByteArray raw)
static

Definition at line 1211 of file qnetworkrequest.cpp.

References QByteArrayView::endsWith(), QString::fromLatin1(), QByteArrayView::startsWith(), and QByteArray::trimmed().

Referenced by parseHeaderValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseHeaderName()

◆ parseHeaderValue()

◆ parseHttpDate()

static QVariant parseHttpDate ( const QByteArray raw)
static

Definition at line 1188 of file qnetworkrequest.cpp.

References QNetworkHeadersPrivate::fromHttpDate(), and QDateTime::isValid().

Referenced by parseHeaderValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseIfMatch()

static QVariant parseIfMatch ( const QByteArray raw)
static

Definition at line 1223 of file qnetworkrequest.cpp.

References QByteArrayView::endsWith(), QString::fromLatin1(), QStringLiteral, QByteArray::split(), split(), QByteArrayView::startsWith(), QByteArray::trimmed(), and QByteArrayView::trimmed().

Referenced by parseHeaderValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseIfNoneMatch()

static QVariant parseIfNoneMatch ( const QByteArray raw)
static

Definition at line 1244 of file qnetworkrequest.cpp.

References QByteArrayView::endsWith(), QString::fromLatin1(), QStringLiteral, QByteArray::split(), split(), QByteArrayView::startsWith(), QByteArray::trimmed(), and QByteArrayView::trimmed().

Referenced by parseHeaderValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: