chttpclient · Section 3
chttp_get
NAME
chttp_get - do a GET request with the default client
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/chttpclient.h>
ccol_retval chttp_get(const char *url,
chttpcli_response **resp_out);
DESCRIPTION
This is a convenience wrapper that builds a CHTTP_GET request for url, runs it with the default client and frees it again.
PARAMETERS
url The target URL. It must not be NULL.
resp_out It must not be NULL. The function sets it to NULL first,
and stores the pointer to the response there if the call
succeeds.
RETURN VALUE
The same codes as chttpcli_do.
SEE ALSO
chttp_post(3), chttp_put(3), chttp_delete(3), chttp_patch(3), chttp_do_default(3)