chttpclient · Section 3
chttp_do_default
NAME
chttp_do_default - do an HTTP request with the default client
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/chttpclient.h>
ccol_retval chttp_do_default(const chttp_request *req,
chttpcli_response **resp_out);
DESCRIPTION
This function is the same as chttpcli_do(chttp_default_client(), req, resp_out).
RETURN VALUE
The same codes as chttpcli_do, or ccol_unexpected_failure when the default client cannot be initialized.