27 #include <sys/types.h>
42 HttpResponse response;
45 response =
new(HttpResponse,
"HTTP/1.1", 200,
"OK");
46 message = (HttpMessage)response;
49 new(HttpHeader,
CSTRA(
"Content-Type"),
CSTRA(
"application/json")));
51 message->nbody = nbody;
53 memcpy(message->body, body, nbody);
HttpResponse httpResponseJson(const char *body, size_t nbody)
#define CSTRA(val)
Const STRing Argument.
void * hashAdd(Hash, void *)