remove unused code
This commit is contained in:
parent
101a5b5eaf
commit
dfda73adf1
1 changed files with 0 additions and 16 deletions
16
quark.c
16
quark.c
|
@ -31,27 +31,11 @@ typedef struct {
|
|||
const char *mimetype;
|
||||
} MimeType;
|
||||
|
||||
typedef struct _Param Param;
|
||||
struct _Param {
|
||||
const char *key;
|
||||
const char *value;
|
||||
Param *next;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
int type;
|
||||
int fd;
|
||||
const char *hostname;
|
||||
const char *resource;
|
||||
Param *params;
|
||||
} Request;
|
||||
|
||||
typedef struct {
|
||||
const char *hostname;
|
||||
const char *resource;
|
||||
void (*handle)(const Request *r);
|
||||
} RequestHandler;
|
||||
|
||||
static const char HttpOk[] = "200 OK";
|
||||
static const char HttpMoved[] = "301 Moved Permanently";
|
||||
static const char HttpUnauthorized[] = "401 Unauthorized";
|
||||
|
|
Loading…
Reference in a new issue