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:5089
void cacheParseResponseHeader(const HeaderTokenizer &tokenizer)
Definition: http.cpp:3647
void clear()
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:1918
void parseContentDisposition(const QString &disposition)
Definition: http.cpp:3609
QString userName() const
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:1366
void setCacheabilityMetadata(bool cachingAllowed)
Definition: http.cpp:3836
bool readResponseHeader()
This function will read in the return header from the server.
Definition: http.cpp:2901
bool sendQuery()
This function is responsible for opening up the connection to the remote HTTP server and sending the ...
Definition: http.cpp:2377
QString host() const
bool readDelimitedText(char *buf, int *idx, int end, int numNewlines)
Definition: http.cpp:2109
QLocalSocket m_cacheCleanerConnection
Connection to the cache cleaner process.
Definition: http.h:575
void setPassword(const QString &password)
QByteArray cacheFileReadPayload(int maxLength)
Definition: http.cpp:5044
Definition: http.h:106
QString cacheFilePathFromUrl(const KUrl &url) const
Definition: http.cpp:4860
Definition: http.h:85
quint16 port() const
int port() const
Definition: http.h:68
void davSetRequest(const QByteArray &requestXML)
Performs a WebDAV stat or list.
Definition: http.cpp:798
Definition: http.h:107
virtual void put(const KUrl &url, int _mode, KIO::JobFlags flags)
Definition: http.cpp:1337
Definition: http.h:65
void clear()
bool sendHttpError()
Generate and send error message based on response code.
Definition: http.cpp:1887
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:960
QString authenticationHeader()
create HTTP authentications response(s), if any
Definition: http.cpp:5146
bool httpShouldCloseConnection()
Check whether to keep or close the connection.
Definition: http.cpp:2163
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:2295
bool davStatDestination()
Stats a remote DAV file and returns true if it exists.
Definition: http.cpp:5556
virtual void setHost(const QString &host, quint16 port, const QString &user, const QString &pass)
Definition: http.cpp:618
void updateCredentials(const HTTPRequest &request)
Definition: http.h:206
CacheControl
void fixupResponseContentEncoding()
fix common content-encoding errors by webservers.
Definition: http.cpp:2834
enum HTTPProtocol::HTTPRequest::@1 cookieMode
void davLock(const KUrl &url, const QString &scope, const QString &type, const QString &owner)
Definition: http.cpp:1492
Definition: parsinghelpers.h:64
void davGeneric(const KUrl &url, KIO::HTTP_METHOD method, qint64 size=-1)
Definition: http.cpp:939
HTTPProtocol(const QByteArray &protocol, const QByteArray &pool, const QByteArray &app)
Definition: http.cpp:437
QString password() const
bool proceedUntilResponseHeader()
Ensure we are connected, send our query, and get the response header.
Definition: http.cpp:696
Definition: http.h:65
bool isPersistentProxyConnection
Definition: http.h:232
void setUserName(const QString &userName)
Definition: http.h:65
bool retrieveAllData()
Returns true on successful retrieval of all content data.
Definition: http.cpp:5109
Definition: http.h:183
void forwardHttpResponseHeader(bool forwardImmediately=true)
Definition: http.cpp:2719
Definition: http.h:65
Definition: http.h:68
bool handleAuthenticationHeader(const HeaderTokenizer *tokenizer)
Handles HTTP authentication.
Definition: http.cpp:5357
Definition: http.h:56
bool readBody(bool dataInternal=false)
This function is our "receive" function.
Definition: http.cpp:4342
bool cacheFileReadTextHeader1(const KUrl &desiredUrl)
check URL to guard against hash collisions, and load the etag for validation
Definition: http.cpp:4802
virtual void rename(const KUrl &src, const KUrl &dest, KIO::JobFlags flags)
Definition: http.cpp:1403
bool allowTransferCompression
Definition: http.h:173
void proxyAuthenticationForSocket(const QNetworkProxy &, QAuthenticator *)
Definition: http.cpp:5231
Definition: http.h:68
void davParseActiveLocks(const QDomNodeList &activeLocks, uint &lockCount)
Definition: http.cpp:1146
void saveProxyAuthenticationForSocket()
Definition: http.cpp:5290
void copyPut(const KUrl &src, const KUrl &dest, KIO::JobFlags flags)
Handles file -> webdav put requests.
Definition: http.cpp:5522
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:2035
QString davProcessLocks()
Extracts locks from metadata Returns the appropriate If: header.
Definition: http.cpp:1192
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:4060
void davParsePropstats(const QDomNodeList &propstats, KIO::UDSEntry &entry)
Definition: http.cpp:967
Definition: http.h:68
size_t readBuffered(char *buf, size_t size, bool unlimited=true)
Definition: http.cpp:2075
void addEncoding(const QString &, QStringList &)
Add an encoding on to the appropriate stack this is nececesary because transfer encodings and content...
Definition: http.cpp:3621
void addCookies(const QString &url, const QByteArray &cookieHeader)
Send a cookie to the cookiejar.
Definition: http.cpp:4605
void sendCacheCleanerCommand(const QByteArray &command)
Definition: http.cpp:5020
void initFrom(const HTTPRequest &request)
Definition: http.h:197
void cacheFileWritePayload(const QByteArray &d)
Definition: http.cpp:5057
void proceedUntilResponseContent(bool dataInternal=false)
Do everything proceedUntilResponseHeader does, and also get the response body.
Definition: http.cpp:673
bool isPersistentProxyConnection
Definition: http.h:172
QString davError(int code=-1, const QString &url=QString())
Definition: http.cpp:1576
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.