#include <davixrequestparams.hpp>
Public Member Functions | |
| RequestParams (const RequestParams ¶ms) | |
| RequestParams (const RequestParams *params) | |
| void | setSSLCAcheck (bool chk) |
| disable the certificate authority validity check for the https request | |
| bool | getSSLCACheck () const |
| return the SSL Certificate authority validity check | |
| void | setClientCertX509 (const X509Credential &cli_cert) |
| const X509Credential & | getClientCertX509 () const |
| get the current client side credential | |
| void | setClientLoginPassword (const std::string &login, const std::string &password) |
| set login/password for HTTP Authentication | |
|
const std::pair< std::string, std::string > & | getClientLoginPassword () const |
| get login/password for HTTP Authentication | |
| void | setClientCertCallbackX509 (authCallbackClientCertX509 callback, void *userdata) |
|
std::pair< authCallbackClientCertX509, void * > | getClientCertCallbackX509 () const |
| return the current client side callback for authentification with the associated user data | |
| void | setClientLoginPasswordCallback (authCallbackLoginPasswordBasic callback, void *userdata) |
|
std::pair< authCallbackLoginPasswordBasic, void * > | getClientLoginPasswordCallback () const |
| return the current login/password callback and the associated user data | |
| void | addCertificateAuthorityPath (const std::string &path) |
| add the CA certificate in the directory 'path' as trusted certificate | |
| const std::vector< std::string > & | listCertificateAuthorityPath () const |
| get the list of the current user defined CA path | |
| void | setConnectionTimeout (struct timespec *conn_timeout) |
| timespec * | getConnectionTimeout () const |
| get the current connexion timeout | |
| void | setOperationTimeout (struct timespec *ops_timeout) |
| timespec * | getOperationTimeout () const |
| void | setTransparentRedirectionSupport (bool redirection) |
| bool | getTransparentRedirectionSupport () const |
| return true if the transparent redirection mode is enabled | |
| void | setUserAgent (const std::string &user_agent) |
| set the user agent for the associated request | |
| const std::string & | getUserAgent () const |
| get the current user agent string | |
| void | setProtocol (const davix_request_protocol_t proto) |
| set the request protocol ( ex : Webdav, Http-only ) | |
| const davix_request_protocol_t | getProtocol () const |
| get the current value of the request protocol | |
| void | setKeepAlive (const bool keep_alive_flag) |
| set the keep alive value of the associated session | |
| const bool | getKeepAlive () const |
| get the keep alive value of this request params | |
| RequestParams & | operator= (const RequestParams &_p) |
RequestParams hold the davix request options : authentification parameters, timeouts, user-agents,... A Requestparams object can be shared between several Request
| struct timespec* Davix::RequestParams::getOperationTimeout | ( | ) | const |
get the maximum execution time for a davix request DEFAULT : infinite
| void Davix::RequestParams::setClientCertCallbackX509 | ( | authCallbackClientCertX509 | callback, | |
| void * | userdata | |||
| ) |
set a callback for X509 client side dynamic authentication this function overwrite setClientCertX509
| void Davix::RequestParams::setClientCertX509 | ( | const X509Credential & | cli_cert | ) |
set a X509 credential for a simple client authentication this function overwrite setClientCertCallbackX509
| void Davix::RequestParams::setClientLoginPasswordCallback | ( | authCallbackLoginPasswordBasic | callback, | |
| void * | userdata | |||
| ) |
set a callback for basic login/password http authentification this function overwrite setClientLoginPassword
| void Davix::RequestParams::setConnectionTimeout | ( | struct timespec * | conn_timeout | ) |
define the connexion timeout conn_timeout is a relative time DEFAULT : 180s
| void Davix::RequestParams::setOperationTimeout | ( | struct timespec * | ops_timeout | ) |
define the maximum execution time for a davix request ops_timeout is a relative time DEFAULT : infinite
| void Davix::RequestParams::setTransparentRedirectionSupport | ( | bool | redirection | ) |
enable or disable transparent redirection support In the transparent redirection mode, davix follows the HTTP redirection automatically DEFAULT : enabled
1.4.7