From 2b2707d6084302c3062dac1cc43ac0123d9068ed Mon Sep 17 00:00:00 2001 From: Daniel Heras Quesada Date: Thu, 19 Dec 2024 08:02:10 +0100 Subject: [PATCH] docs: minor notes --- docs/TODO.md | 4 ++++ src/http/types.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/TODO.md b/docs/TODO.md index b6b657f..493c7fb 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -8,3 +8,7 @@ - [ ] File management - [ ] Auto-cleanup - [ ] Transversal utility + +## Improvements + +- [ ] Check any potential error in Request Parsing and return a 500 error. diff --git a/src/http/types.rs b/src/http/types.rs index 8c18fbd..0a669f6 100644 --- a/src/http/types.rs +++ b/src/http/types.rs @@ -9,7 +9,7 @@ pub type Body<'a> = Option<&'a str>; #[derive(Debug)] pub struct ProcessedResponse { pub data: String, - pub status: Status, + pub status: Status, // NOTE: this is dupped, but might be useful so I'll keep it } pub type QueryParams<'a> = HashMap<&'a str, &'a str>;