Add ETag calculation

This commit is contained in:
2020-12-22 22:31:58 +01:00
parent 8cccf48826
commit c6f364d6e8
5 changed files with 148 additions and 21 deletions

View File

@ -9,12 +9,19 @@
#define NECRONDA_SERVER_URI_H
#include <sys/stat.h>
#include "cache.h"
#define URI_DIR_MODE_FORBIDDEN 0
#define URI_DIR_MODE_LIST 1
#define URI_DIR_MODE_INFO 2
typedef struct {
char etag[64];
char type[24];
char charset[16];
char filename_comp[256];
struct stat stat;
} meta_data;
typedef struct {
char *webroot; // "/srv/www/www.test.org"
char *req_path; // "/account/login"