C Collections

chttp · Section 3

CHTTP_JSON_BODY

CHTTP_JSON_BODY - construct a chttp_request_body for JSON content

C Collections (libccollections, -lccollections)

#include <ccollections/chttp.h>
 
CHTTP_JSON_BODY(d, n)

This macro expands to an initializer for a chttp_request_body that
sets Content-Type to "application/json", the data pointer to d and the
byte length to n.

CHTTP_TEXT_BODY(3), CHTTP_BODY(3)