Google APIs Client Library for C++
|
Factory for creating CurlHttpTransport instances. More...
#include "client/transport/curl_http_transport.h"
Public Member Functions | |
CurlHttpTransportFactory () | |
Default constructor. | |
CurlHttpTransportFactory (const HttpTransportLayerConfig *config) | |
Standard constructor. | |
virtual | ~CurlHttpTransportFactory () |
Standard destructor. | |
Static Public Member Functions | |
static HttpTransport * | NewCurlHttpTransport (const HttpTransportOptions &options) |
Creates a new instance of a CurlHttpTransport with overriden options. | |
Protected Member Functions | |
virtual HttpTransport * | DoAlloc (const HttpTransportOptions &options) |
Creates a new transport with overrided options. |
Factory for creating CurlHttpTransport instances.
It is recommended not to use this class directly except at the point you are injecting curl as the Http Transport implementation. This should be at application-level configuration.
HttpTransport::set_default_transport_factory(new CurlHttpTransportFactory)
Default constructor.
CurlHttpTransportFactory | ( | const HttpTransportLayerConfig * | config | ) | [explicit] |
Standard constructor.
virtual ~CurlHttpTransportFactory | ( | ) | [virtual] |
Standard destructor.
virtual HttpTransport* DoAlloc | ( | const HttpTransportOptions & | options | ) | [protected, virtual] |
Creates a new transport with overrided options.
[in] | options | The options will override the options in the factory that are used to configure new transports created. The options are copied into the new instance. |
Implements HttpTransportFactory.
static HttpTransport* NewCurlHttpTransport | ( | const HttpTransportOptions & | options | ) | [static] |
Creates a new instance of a CurlHttpTransport with overriden options.
[in] | options | The options to use when configuring the transport are copied into the instance. |