23 #include <sys/types.h>
46 hashAdd(this->current_response->header,
47 new(HttpHeader,
CSTRA(
"Connection"),
CSTRA(
"Keep-Alive")));
50 hashAdd(this->current_response->header,
51 new(HttpHeader,
CSTRA(
"Connection"),
CSTRA(
"Close")));
54 hashAdd(this->current_response->header,
55 new(HttpHeader,
CSTRA(
"Server"),
CSTRA(PACKAGE_STRING)));
57 switch(((HttpResponse)this->current_response)->status) {
62 nbuf = sprintf(buffer,
"%d", this->current_response->nbody);
63 hashAdd(this->current_response->header,
64 new(HttpHeader,
CSTRA(
"Content-Length"), buffer, nbuf));
68 hashAdd(this->current_response->header,
69 new(HttpHeader,
CSTRA(
"Date"), buffer, nbuf));
#define CSTRA(val)
Const STRing Argument.
void * hashAdd(Hash, void *)
size_t rfc1123GmtNow(char *, size_t)
char httpMessageHasKeepAlive(HttpMessage)