remove unused code

This commit is contained in:
Hiltjo Posthuma 2014-02-15 15:09:55 +01:00 committed by sin
parent 101a5b5eaf
commit dfda73adf1

16
quark.c
View file

@ -31,27 +31,11 @@ typedef struct {
const char *mimetype; const char *mimetype;
} MimeType; } MimeType;
typedef struct _Param Param;
struct _Param {
const char *key;
const char *value;
Param *next;
};
typedef struct { typedef struct {
int type; int type;
int fd; int fd;
const char *hostname;
const char *resource;
Param *params;
} Request; } Request;
typedef struct {
const char *hostname;
const char *resource;
void (*handle)(const Request *r);
} RequestHandler;
static const char HttpOk[] = "200 OK"; static const char HttpOk[] = "200 OK";
static const char HttpMoved[] = "301 Moved Permanently"; static const char HttpMoved[] = "301 Moved Permanently";
static const char HttpUnauthorized[] = "401 Unauthorized"; static const char HttpUnauthorized[] = "401 Unauthorized";