diff --git a/core/http/src/handling/request.rs b/core/http/src/handling/request.rs index efed546e5c1c39ebee59d3cfd26bf0aeeeb49343..f90bacb26cfdbd72e041f6e520751bb0659252d9 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 0000000000000000000000000000000000000000..9d17bfbb75c63ca3f5b2792d5f9d8e7254b5f92a --- /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 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..909a5318005edf3c0c30a31db780768c40e45b5b 100644 --- a/core/http/src/utils/mod.rs +++ b/core/http/src/utils/mod.rs @@ -0,0 +1 @@ +pub mod mime;