Skip to content
Snippets Groups Projects
Commit 99f0bbdf authored by codecraft's avatar codecraft :crocodile:
Browse files

Introduced the MIME enum, not populated

parent d377be4b
No related branches found
No related tags found
1 merge request!1Initial feature merge
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
use std::{collections::HashMap, error::Error, fmt::Display}; use std::{collections::HashMap, error::Error, fmt::Display};
trait FromPost {}
impl FromPost for &str {}
impl FromPost for Vec<u8> {}
use super::{ use super::{
methods::Method, methods::Method,
routes::{Data, Uri}, routes::{Data, Uri},
...@@ -103,11 +108,7 @@ impl Request<'_> { ...@@ -103,11 +108,7 @@ impl Request<'_> {
} }
Ok(response) Ok(response)
} }
pub fn get_form_keys_with_data( pub fn get_post_form_key(&self, key: &str, data: Data) {
&self,
_keys: Vec<&str>,
_data_buffer: Data,
) -> Result<HashMap<&str, &str>, ParseFormError> {
todo!() todo!()
} }
} }
enum Mime {}
pub mod mime;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment