This allows creating a HTTP client without a shared context, in case it's
needed for some reason.
return http_client_init_shared(http_client_get_global_context(), set);
}
+struct http_client *
+http_client_init_private(const struct http_client_settings *set)
+{
+ return http_client_init_shared(NULL, set);
+}
+
void http_client_deinit(struct http_client **_client)
{
struct http_client *client = *_client;
/* Create a client using the global shared client context. */
struct http_client *
http_client_init(const struct http_client_settings *set);
+/* Create a client without a shared context. */
+struct http_client *
+http_client_init_private(const struct http_client_settings *set);
struct http_client *
http_client_init_shared(struct http_client_context *cctx,
const struct http_client_settings *set) ATTR_NULL(1);