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 @@
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!()
}
}
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