chttp · Section 3
CHTTP_NO_BODY
NAME
CHTTP_NO_BODY - construct a chttp_request_body for a bodyless request
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/chttp.h> CHTTP_NO_BODY
DESCRIPTION
This macro expands to an initializer for a chttp_request_body whose fields are all zero. Use it for GET, HEAD, DELETE and any other request that carries no body.
EXAMPLES
chttp_request *req =
chttp_request_create(CHTTP_GET, url, &CHTTP_NO_BODY, NULL);
SEE ALSO
CHTTP_BODY(3), CHTTP_JSON_BODY(3), CHTTP_TEXT_BODY(3), CHTTP_FORM_BODY(3)