C Collections

chttpclient · Section 3

chttp_do_default

chttp_do_default - do an HTTP request with the default client

C Collections (libccollections, -lccollections)

#include <ccollections/chttpclient.h>
 
ccol_retval chttp_do_default(const chttp_request *req,
                       chttpcli_response **resp_out);

This function is the same as
chttpcli_do(chttp_default_client(), req, resp_out).

The same codes as chttpcli_do, or ccol_unexpected_failure when the
default client cannot be initialized.

chttpcli_do(3), chttp_default_client(3)