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;
|
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";
|
||||||
|
|
Loading…
Reference in a new issue