KIOSlave
http.h
Go to the documentation of this file.
void cachePostData(const QByteArray &)
Caches the POST data in a temporary buffer.
Definition: http.cpp:5097
void cacheParseResponseHeader(const HeaderTokenizer &tokenizer)
Definition: http.cpp:3661
qulonglong filesize_t
Definition: http.h:86
Definition: http.h:68
bool sendErrorPageNotification()
Call SlaveBase::errorPage() and remember that we've called it.
Definition: http.cpp:1930
void parseContentDisposition(const QString &disposition)
Definition: http.cpp:3623
Definition: http.h:105
DAV-specific request elements for the current connection.
Definition: http.h:71
Definition: http.h:183
virtual void copy(const KUrl &src, const KUrl &dest, int _permissions, KIO::JobFlags flags)
Definition: http.cpp:1382
void setCacheabilityMetadata(bool cachingAllowed)
Definition: http.cpp:3850
bool readResponseHeader()
This function will read in the return header from the server.
Definition: http.cpp:2913
bool sendQuery()
This function is responsible for opening up the connection to the remote HTTP server and sending the ...
Definition: http.cpp:2389
bool readDelimitedText(char *buf, int *idx, int end, int numNewlines)
Definition: http.cpp:2121
QLocalSocket m_cacheCleanerConnection
Connection to the cache cleaner process.
Definition: http.h:565
QByteArray cacheFileReadPayload(int maxLength)
Definition: http.cpp:5052
Definition: http.h:106
QString cacheFilePathFromUrl(const KUrl &url) const
Definition: http.cpp:4868
Definition: http.h:85
quint16 port() const
Definition: http.h:68
void davSetRequest(const QByteArray &requestXML)
Performs a WebDAV stat or list.
Definition: http.cpp:787
Definition: http.h:107
virtual void put(const KUrl &url, int _mode, KIO::JobFlags flags)
Definition: http.cpp:1326
Definition: http.h:65
bool sendHttpError()
Generate and send error message based on response code.
Definition: http.cpp:1899
Definition: http.h:65
int codeFromResponse(const QString &response)
Returns the error code from a "HTTP/1.1 code Code Name" string.
Definition: http.cpp:949
QString authenticationHeader()
create HTTP authentications response(s), if any
Definition: http.cpp:5154
bool httpShouldCloseConnection()
Check whether to keep or close the connection.
Definition: http.cpp:2175
Definition: http.h:90
Definition: http.h:87
bool satisfyRequestFromCache(bool *cacheHasPage)
Return true if the request is already "done", false otherwise.
Definition: http.cpp:2307
virtual void setHost(const QString &host, quint16 port, const QString &user, const QString &pass)
Definition: http.cpp:608
void updateCredentials(const HTTPRequest &request)
Definition: http.h:206
CacheControl
void fixupResponseContentEncoding()
fix common content-encoding errors by webservers.
Definition: http.cpp:2846
enum HTTPProtocol::HTTPRequest::@1 cookieMode
void davLock(const KUrl &url, const QString &scope, const QString &type, const QString &owner)
Definition: http.cpp:1504
Definition: parsinghelpers.h:64
void davGeneric(const KUrl &url, KIO::HTTP_METHOD method, qint64 size=-1)
Definition: http.cpp:928
HTTPProtocol(const QByteArray &protocol, const QByteArray &pool, const QByteArray &app)
Definition: http.cpp:427
bool proceedUntilResponseHeader()
Ensure we are connected, send our query, and get the response header.
Definition: http.cpp:686
Definition: http.h:65
bool isPersistentProxyConnection
Definition: http.h:232
Definition: http.h:65
bool retrieveAllData()
Returns true on successful retrieval of all content data.
Definition: http.cpp:5117
Definition: http.h:183
void forwardHttpResponseHeader(bool forwardImmediately=true)
Definition: http.cpp:2731
Definition: http.h:65
Definition: http.h:68
bool handleAuthenticationHeader(const HeaderTokenizer *tokenizer)
Handles HTTP authentication.
Definition: http.cpp:5365
Definition: http.h:56
bool readBody(bool dataInternal=false)
This function is our "receive" function.
Definition: http.cpp:4350
bool cacheFileReadTextHeader1(const KUrl &desiredUrl)
check URL to guard against hash collisions, and load the etag for validation
Definition: http.cpp:4810
virtual void rename(const KUrl &src, const KUrl &dest, KIO::JobFlags flags)
Definition: http.cpp:1412
bool allowTransferCompression
Definition: http.h:173
void proxyAuthenticationForSocket(const QNetworkProxy &, QAuthenticator *)
Definition: http.cpp:5239
Definition: http.h:68
void davParseActiveLocks(const QDomNodeList &activeLocks, uint &lockCount)
Definition: http.cpp:1135
void saveProxyAuthenticationForSocket()
Definition: http.cpp:5298
ssize_t write(const void *buf, size_t nbytes)
A thin wrapper around TCPSlaveBase::write() that will retry writing as long as no error occurs...
Definition: http.cpp:2047
QString davProcessLocks()
Extracts locks from metadata Returns the appropriate If: header.
Definition: http.cpp:1181
virtual void special(const QByteArray &data)
Special commands supported by this slave : 1 - HTTP POST 2 - Cache has been updated 3 - SSL Certifica...
Definition: http.cpp:4068
void davParsePropstats(const QDomNodeList &propstats, KIO::UDSEntry &entry)
Definition: http.cpp:956
Definition: http.h:68
size_t readBuffered(char *buf, size_t size, bool unlimited=true)
Definition: http.cpp:2087
void addEncoding(const QString &, QStringList &)
Add an encoding on to the appropriate stack this is nececesary because transfer encodings and content...
Definition: http.cpp:3635
void addCookies(const QString &url, const QByteArray &cookieHeader)
Send a cookie to the cookiejar.
Definition: http.cpp:4613
void sendCacheCleanerCommand(const QByteArray &command)
Definition: http.cpp:5028
void initFrom(const HTTPRequest &request)
Definition: http.h:197
void cacheFileWritePayload(const QByteArray &d)
Definition: http.cpp:5065
void proceedUntilResponseContent(bool dataInternal=false)
Do everything proceedUntilResponseHeader does, and also get the response body.
Definition: http.cpp:663
bool isPersistentProxyConnection
Definition: http.h:172
QString davError(int code=-1, const QString &url=QString())
Definition: http.cpp:1588
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.