From 99f0bbdf127f2d77d1c08cabd2d1dd5d247d6908 Mon Sep 17 00:00:00 2001
From: Darius Auding <Darius.auding@gmx.de>
Date: Fri, 2 Jun 2023 21:54:05 +0200
Subject: [PATCH] Introduced the MIME enum, not populated

---
 core/http/src/handling/request.rs | 11 ++++++-----
 core/http/src/utils/mime.rs       |  1 +
 core/http/src/utils/mod.rs        |  1 +
 3 files changed, 8 insertions(+), 5 deletions(-)
 create mode 100644 core/http/src/utils/mime.rs

diff --git a/core/http/src/handling/request.rs b/core/http/src/handling/request.rs
index efed546..f90bacb 100644
--- a/core/http/src/handling/request.rs
+++ b/core/http/src/handling/request.rs
@@ -2,6 +2,11 @@
 
 use std::{collections::HashMap, error::Error, fmt::Display};
 
+trait FromPost {}
+
+impl FromPost for &str {}
+impl FromPost for Vec<u8> {}
+
 use super::{
     methods::Method,
     routes::{Data, Uri},
@@ -103,11 +108,7 @@ impl Request<'_> {
         }
         Ok(response)
     }
-    pub fn get_form_keys_with_data(
-        &self,
-        _keys: Vec<&str>,
-        _data_buffer: Data,
-    ) -> Result<HashMap<&str, &str>, ParseFormError> {
+    pub fn get_post_form_key(&self, key: &str, data: Data) {
         todo!()
     }
 }
diff --git a/core/http/src/utils/mime.rs b/core/http/src/utils/mime.rs
new file mode 100644
index 0000000..9d17bfb
--- /dev/null
+++ b/core/http/src/utils/mime.rs
@@ -0,0 +1 @@
+enum Mime {}
diff --git a/core/http/src/utils/mod.rs b/core/http/src/utils/mod.rs
index e69de29..909a531 100644
--- a/core/http/src/utils/mod.rs
+++ b/core/http/src/utils/mod.rs
@@ -0,0 +1 @@
+pub mod mime;
-- 
GitLab