#include <http.h>
Inherits BazisLib::Network::HTTP::HTTPClient.
Public Member Functions | |
ManagedPointer< AIFile > | OpenDocument (const std::string &URL, const std::string &Login, const std::string &Password, bool ReadAheadCache=true, PNETPROGRESSPROC pProgress=0, void *pContext=0, unsigned ThreadID=0, const ConstManagedPointer< ACHTTPRequest > *ppHeaderOverride=NULL) |
Opens a HTTP document and returns a managed AIFile pointer. | |
Friends | |
class | HTTPFile |
This class creates HTTPFile objects, that support AIFile interface for files retreived using HTTP protocol. The class is an automatic class and uses the Object Manager. The decision to use object manager is based on the fact that created AIFile object need references to the HTTP client. However, as some multi-threaded scenarios can be used, there is no way to ensure that the HTTP client is not deleted before all its HTTPFile-s are other than implement reference counting, that is actually performed by the Object Manager.
ManagedPointer<AIFile> BazisLib::Network::HTTP::AutoHTTPClient::OpenDocument | ( | const std::string & | URL, | |
const std::string & | Login, | |||
const std::string & | Password, | |||
bool | ReadAheadCache = true , |
|||
PNETPROGRESSPROC | pProgress = 0 , |
|||
void * | pContext = 0 , |
|||
unsigned | ThreadID = 0 , |
|||
const ConstManagedPointer< ACHTTPRequest > * | ppHeaderOverride = NULL | |||
) |
friend class HTTPFile [friend] |