|
| HTTPProtocol (const QByteArray &protocol, const QByteArray &pool, const QByteArray &app) |
|
virtual | ~HTTPProtocol () |
|
virtual void | closeConnection () |
|
virtual void | copy (const KUrl &src, const KUrl &dest, int _permissions, KIO::JobFlags flags) |
|
QString | davError (int code=-1, const QString &url=QString()) |
|
void | davFinished () |
|
void | davGeneric (const KUrl &url, KIO::HTTP_METHOD method, qint64 size=-1) |
|
bool | davHostOk () |
|
void | davLock (const KUrl &url, const QString &scope, const QString &type, const QString &owner) |
|
void | davUnlock (const KUrl &url) |
|
virtual void | del (const KUrl &url, bool _isfile) |
|
virtual void | get (const KUrl &url) |
|
bool | isOffline () |
|
virtual void | listDir (const KUrl &url) |
|
bool | maybeSetRequestUrl (const KUrl &) |
|
virtual void | mimetype (const KUrl &url) |
|
virtual void | mkdir (const KUrl &url, int _permissions) |
|
void | multiGet (const QByteArray &data) |
|
void | post (const KUrl &url, qint64 size=-1) |
|
virtual void | put (const KUrl &url, int _mode, KIO::JobFlags flags) |
|
virtual void | rename (const KUrl &src, const KUrl &dest, KIO::JobFlags flags) |
|
virtual void | reparseConfiguration () |
|
bool | sendErrorPageNotification () |
|
bool | sendHttpError () |
|
virtual void | setHost (const QString &host, quint16 port, const QString &user, const QString &pass) |
|
virtual void | slave_status () |
|
virtual void | special (const QByteArray &data) |
|
virtual void | stat (const KUrl &url) |
|
| TCPSlaveBase (const QByteArray &protocol, const QByteArray &poolSocket, const QByteArray &appSocket, bool autoSsl=false) |
|
virtual | ~TCPSlaveBase () |
|
virtual void | chmod (const KUrl &url, int permissions) |
|
virtual void | copy (const KUrl &src, const KUrl &dest, int permissions, JobFlags flags) |
|
virtual void | put (const KUrl &url, int permissions, JobFlags flags) |
|
virtual void | rename (const KUrl &src, const KUrl &dest, JobFlags flags) |
|
virtual void | setModificationTime (const KUrl &url, const QDateTime &mtime) |
|
virtual void | symlink (const QString &target, const KUrl &dest, JobFlags flags) |
|
|
void | addCookies (const QString &url, const QByteArray &cookieHeader) |
|
void | addEncoding (const QString &, QStringList &) |
|
QString | authenticationHeader () |
|
void | cacheFileClose () |
|
bool | cacheFileOpenRead () |
|
bool | cacheFileOpenWrite () |
|
QString | cacheFilePathFromUrl (const KUrl &url) const |
|
QByteArray | cacheFileReadPayload (int maxLength) |
|
bool | cacheFileReadTextHeader1 (const KUrl &desiredUrl) |
|
bool | cacheFileReadTextHeader2 () |
|
void | cacheFileWritePayload (const QByteArray &d) |
|
void | cacheFileWriteTextHeader () |
|
void | cacheParseResponseHeader (const HeaderTokenizer &tokenizer) |
|
void | cachePostData (const QByteArray &) |
|
void | clearPostDataBuffer () |
|
void | clearUnreadBuffer () |
|
int | codeFromResponse (const QString &response) |
|
void | davParseActiveLocks (const QDomNodeList &activeLocks, uint &lockCount) |
|
void | davParsePropstats (const QDomNodeList &propstats, KIO::UDSEntry &entry) |
|
QString | davProcessLocks () |
|
void | davSetRequest (const QByteArray &requestXML) |
|
void | davStatList (const KUrl &url, bool stat=true) |
|
quint16 | defaultPort () const |
|
QString | findCookies (const QString &url) |
|
void | fixupResponseContentEncoding () |
|
void | fixupResponseMimetype () |
|
QString | formatRequestUri () const |
|
void | forwardHttpResponseHeader (bool forwardImmediately=true) |
|
bool | handleAuthenticationHeader (const HeaderTokenizer *tokenizer) |
|
void | httpClose (bool keepAlive) |
|
void | httpCloseConnection () |
|
bool | httpOpenConnection () |
|
bool | httpShouldCloseConnection () |
|
void | parseContentDisposition (const QString &disposition) |
|
bool | parseHeaderFromCache () |
|
void | proceedUntilResponseContent (bool dataInternal=false) |
|
bool | proceedUntilResponseHeader () |
|
bool | readBody (bool dataInternal=false) |
|
size_t | readBuffered (char *buf, size_t size, bool unlimited=true) |
|
int | readChunked () |
|
bool | readDelimitedText (char *buf, int *idx, int end, int numNewlines) |
|
int | readLimited () |
|
bool | readResponseHeader () |
|
int | readUnlimited () |
|
void | resetConnectionSettings () |
|
void | resetResponseParsing () |
|
void | resetSessionSettings () |
|
bool | retrieveAllData () |
|
bool | satisfyRequestFromCache (bool *cacheHasPage) |
|
void | saveAuthenticationData () |
|
bool | sendBody () |
|
void | sendCacheCleanerCommand (const QByteArray &command) |
|
bool | sendCachedBody () |
|
bool | sendQuery () |
|
void | setCacheabilityMetadata (bool cachingAllowed) |
|
void | unread (char *buf, size_t size) |
|
ssize_t | write (const void *buf, size_t nbytes) |
|
bool | atEnd () const |
|
bool | connectToHost (const QString &protocol, const QString &host, quint16 port) |
|
int | connectToHost (const QString &host, quint16 port, QString *errorString=0) |
|
void | disconnectFromHost () |
|
bool | isAutoSsl () const |
|
bool | isConnected () const |
|
bool | isUsingSsl () const |
|
quint16 | port () const |
|
ssize_t | read (char *data, ssize_t len) |
|
ssize_t | readLine (char *data, ssize_t len) |
|
void | setBlocking (bool b) |
|
QIODevice * | socket () const |
|
bool | startSsl () |
|
virtual void | virtual_hook (int id, void *data) |
|
bool | waitForResponse (int t) |
|
ssize_t | write (const char *data, ssize_t len) |
|
Definition at line 56 of file http.h.
void HTTPProtocol::proceedUntilResponseContent |
( |
bool |
dataInternal = false | ) |
|
|
protected |
Do everything proceedUntilResponseHeader does, and also get the response body.
This is being used as a replacement for proceedUntilResponseHeader() in situations where we actually expect the response to have a body / payload data.
where dataInternal == true, the content is to be made available to an internal function.
Definition at line 663 of file http.cpp.
void HTTPProtocol::resetConnectionSettings |
( |
| ) |
|
|
protected |
Resets any per connection settings.
These are different from per-session settings in that they must be invalidated every time a request is made, e.g. a retry to re-send the header to the server, as compared to only when a new request arrives.
Definition at line 470 of file http.cpp.
bool HTTPProtocol::sendQuery |
( |
| ) |
|
|
protected |
This function is responsible for opening up the connection to the remote HTTP server and sending the header.
If this requires special authentication or other such fun stuff, then it will handle it. This function will NOT receive anything from the server, however. This is in contrast to previous incarnations of 'httpOpen' as this method used to be called.
The basic process now is this:
1) Open up the socket and port 2) Format our request/header 3) Send the header to the remote server 4) Call sendBody() if the HTTP method requires sending body data
Definition at line 2389 of file http.cpp.