refactor: change project structure
This commit is contained in:
13
include/http/mime.h
Normal file
13
include/http/mime.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef CWS_MIME_H
|
||||
#define CWS_MIME_H
|
||||
|
||||
#define ARR_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
|
||||
|
||||
typedef struct mimetype {
|
||||
const char *ext;
|
||||
const char *type;
|
||||
} mimetype;
|
||||
|
||||
int http_get_content_type(char *location_path, char *content_type);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user