Main entry point for Davix Each new davix context has its own session-reuse pool and set of parameters Any Method in a Davix::Context is thread-safe. More...
#include <davixcontext.hpp>
Public Member Functions | |
Context () | |
create a new context for Davix | |
Context (const Context &c) | |
Context & | operator= (const Context &c) |
Context * | clone () |
HttpRequest * | createRequest (const Uri &uri, DavixError **err) |
low level operations | |
HttpRequest * | createRequest (const std::string &url, DavixError **err) |
low level operations | |
DavPosix * | createDavPosix () |
POSIX-like operations. | |
Friends | |
class | DavPosix |
struct | ContextExplorer |
Main entry point for Davix Each new davix context has its own session-reuse pool and set of parameters Any Method in a Davix::Context is thread-safe.
Context* Davix::Context::clone | ( | ) |
clone this instance to a new context dynamically allocated, the new context inherit of a copy of all the parent context parameters this context need to be destroyed after usage
DavPosix* Davix::Context::createDavPosix | ( | ) |
POSIX-like operations.
Create a new allocated DavPosix Object entry point
DavPosix is the main entry point for all the POSIX-like operation :
ex : stat() open() / read() / write() / close() opendir() / readdir() / closedir() mkdir() / rmdir() / unlink()
These operations follows the POSIX semantic as much as possible.
HttpRequest* Davix::Context::createRequest | ( | const std::string & | url, | |
DavixError ** | err | |||
) |
low level operations
similar to createRequest(const Uri & uri, DavixError** err) but with a raw string input
url | : url to use for the request | |
err | : Davix Error report |
HttpRequest* Davix::Context::createRequest | ( | const Uri & | uri, | |
DavixError ** | err | |||
) |
low level operations
create a new Http request for direct HTTP low level feature usage this HTTP request object should be destroyed after usage
This function is thread safe. several requests object can be used on the same context in parallel
uri | : Davix Uri to use for the request | |
err | : Davix Error report |