summaryrefslogtreecommitdiff
path: root/src/net/net.h
diff options
context:
space:
mode:
authorSoikk2025-06-14 02:48:33 +0200
committerSoikk2025-06-14 02:48:33 +0200
commit02d02ed4ddba4d66d3f1d5ec92bfe9ec4ca182d0 (patch)
tree9ac6a83eb11455314946af54f1d3740f015c99c9 /src/net/net.h
parent4b87e75761cc90d6fe57dff08f8adc5559999508 (diff)
downloadsoikk-server-02d02ed4ddba4d66d3f1d5ec92bfe9ec4ca182d0.tar.xz
soikk-server-02d02ed4ddba4d66d3f1d5ec92bfe9ec4ca182d0.tar.zst
Reworked config. Added mime module. Reworked mime related functions in net module.
Diffstat (limited to 'src/net/net.h')
-rwxr-xr-xsrc/net/net.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/net/net.h b/src/net/net.h
index 79886df..dc7c147 100755
--- a/src/net/net.h
+++ b/src/net/net.h
@@ -19,6 +19,7 @@
#include "list/list.h"
#include "files/files.h"
#include "log/log.h"
+#include "mime/mime.h"
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <poll.h>
@@ -34,16 +35,6 @@ typedef enum http_method {
} http_method;
-
-enum mime_type {
- AVIF, BMP, CSS, CSV, GZ, GIF, HTML,
- ICO, JPG, JPEG, JS, JSON, MIDI, MP3,
- MP4, MPEG, PNG, PDF, PHP, RAR, TIFF, TS,
- TXT, WAV, WEBA, WEBM, WEBP, XML, ZIP,
- _7Z,
-};
-
-
struct uri {
str path;
str query;