23 #include <sys/types.h>
43 size_t nfname = strlen(fname);
46 ((HttpMessage)this->current_request)->header,
47 CSTRA(
"If-None-Match"));
54 match = (header->value)[0];
55 nmatch = (header->nvalue)[0];
66 if (NULL == message) {
70 if (message->asset->netag == nmatch
71 && 0 == memcmp(message->asset->etag, match, nmatch)) {
72 HttpMessage new_message;
75 message->asset->mime_type, message->asset->nmime_type,
76 message->asset->etag, message->asset->netag,
77 message->asset->mtime, message->asset->nmtime);
HttpResponse httpResponseAsset(const char *, size_t, time_t)
HttpMessage httpWorkerGetAsset(HttpWorker this, const char *fname)
#define CSTRA(val)
Const STRing Argument.
void * hashGet(Hash, const char *, size_t)
HttpResponse httpResponse304(const char *, size_t, const char *, size_t, const char *, size_t)
HttpResponse httpResponse404()