#include "http.h"
#include <config.h>
#include <fcntl.h>
#include <utime.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include <QtXml/qdom.h>
#include <QtCore/QFile>
#include <QtCore/QRegExp>
#include <QtCore/QDate>
#include <QtDBus/QtDBus>
#include <QtNetwork/QAuthenticator>
#include <QtNetwork/QNetworkProxy>
#include <QtNetwork/QTcpSocket>
#include <QtNetwork/QHostInfo>
#include <kurl.h>
#include <kdebug.h>
#include <klocale.h>
#include <kconfig.h>
#include <kconfiggroup.h>
#include <kservice.h>
#include <kdatetime.h>
#include <kcomponentdata.h>
#include <krandom.h>
#include <kmimetype.h>
#include <ktoolinvocation.h>
#include <kstandarddirs.h>
#include <kremoteencoding.h>
#include <ktcpsocket.h>
#include <kio/ioslave_defaults.h>
#include <kio/http_slave_defaults.h>
#include <httpfilter.h>
#include <solid/networking.h>
#include <misc/kntlm/kntlm.h>
#include <kapplication.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <kde_file.h>
#include "parsinghelpers.cpp"
#include "httpauthentication.cpp"
#include "http.moc"
Go to the source code of this file.
Defines |
| #define | NO_SIZE ((KIO::filesize_t) -1) |
| #define | QT_NO_CAST_FROM_ASCII |
| #define | STRTOLL strtol |
Enumerations |
| enum | CacheCleanerCommandCode { InvalidCommand = 0,
CreateFileNotificationCommand,
UpdateFileCommand
} |
Functions |
| static bool | canHaveResponseBody (int responseCode, KIO::HTTP_METHOD method) |
| static bool | compareByte (QDataStream *stream, quint8 value) |
| static QString | filenameFromUrl (const KUrl &url) |
| static QString | formatHttpDate (qint64 date) |
| static bool | isAuthenticationRequired (int responseCode) |
| static bool | isCompatibleNextUrl (const KUrl &previous, const KUrl &now) |
| static bool | isCrossDomainRequest (const QString &fqdn, const QString &originURL) |
| static bool | isEncryptedHttpVariety (const QByteArray &p) |
| static bool | isHttpProxy (const KUrl &u) |
| static bool | isValidProxy (const KUrl &u) |
| int | kdemain (int argc, char **argv) |
| static QByteArray | makeCacheCleanerCommand (const HTTPProtocol::CacheTag &cacheTag, CacheCleanerCommandCode cmd) |
| static bool | readLineChecked (QIODevice *dev, QByteArray *line) |
| static bool | readTime (QDataStream *stream, time_t *time) |
| static QString | sanitizeCustomHTTPHeader (const QString &_header) |
| static KUrl | storableUrl (const KUrl &url) |
| static QString | toQString (const QByteArray &value) |
| static void | writeLine (QIODevice *dev, const QByteArray &line) |
Variables |
| static const int | s_hashedUrlBits = 160 |
| static const int | s_hashedUrlBytes = s_hashedUrlBits / 8 |
| static const int | s_hashedUrlNibbles = s_hashedUrlBits / 4 |
Define Documentation
| #define QT_NO_CAST_FROM_ASCII |
Enumeration Type Documentation
- Enumerator:
| InvalidCommand |
|
| CreateFileNotificationCommand |
|
| UpdateFileCommand |
|
Definition at line 4541 of file http.cpp.
Function Documentation
| static bool canHaveResponseBody |
( |
int |
responseCode, |
|
|
KIO::HTTP_METHOD |
method |
|
) |
| [static] |
| static bool compareByte |
( |
QDataStream * |
stream, |
|
|
quint8 |
value |
|
) |
| [static] |
| static QString filenameFromUrl |
( |
const KUrl & |
url | ) |
[static] |
| static bool isAuthenticationRequired |
( |
int |
responseCode | ) |
[static] |
| static bool isCompatibleNextUrl |
( |
const KUrl & |
previous, |
|
|
const KUrl & |
now |
|
) |
| [static] |
| static bool isCrossDomainRequest |
( |
const QString & |
fqdn, |
|
|
const QString & |
originURL |
|
) |
| [static] |
| static bool isEncryptedHttpVariety |
( |
const QByteArray & |
p | ) |
[static] |
| static bool isHttpProxy |
( |
const KUrl & |
u | ) |
[static] |
| static bool isValidProxy |
( |
const KUrl & |
u | ) |
[static] |
| int kdemain |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
| static bool readLineChecked |
( |
QIODevice * |
dev, |
|
|
QByteArray * |
line |
|
) |
| [static] |
| static bool readTime |
( |
QDataStream * |
stream, |
|
|
time_t * |
time |
|
) |
| [static] |
| static QString sanitizeCustomHTTPHeader |
( |
const QString & |
_header | ) |
[static] |
| static KUrl storableUrl |
( |
const KUrl & |
url | ) |
[static] |
| static QString toQString |
( |
const QByteArray & |
value | ) |
[static] |
| static void writeLine |
( |
QIODevice * |
dev, |
|
|
const QByteArray & |
line |
|
) |
| [static] |
Variable Documentation