C Collections

chttp · Section 3

CHTTP_NO_BODY

CHTTP_NO_BODY - construct a chttp_request_body for a bodyless request

C Collections (libccollections, -lccollections)

#include <ccollections/chttp.h>
 
CHTTP_NO_BODY

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.

chttp_request *req =
    chttp_request_create(CHTTP_GET, url, &CHTTP_NO_BODY, NULL);

CHTTP_BODY(3), CHTTP_JSON_BODY(3), CHTTP_TEXT_BODY(3), CHTTP_FORM_BODY(3)