summaryrefslogtreecommitdiff
path: root/spider/src/request.rs
diff options
context:
space:
mode:
Diffstat (limited to 'spider/src/request.rs')
-rw-r--r--spider/src/request.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/spider/src/request.rs b/spider/src/request.rs
index 4fae0c5..c7d5ab0 100644
--- a/spider/src/request.rs
+++ b/spider/src/request.rs
@@ -24,7 +24,8 @@ impl Request {
};
}
- // TODO(andrew): Add some error handling.
+ // TODO(andrew): accept &[u8] instead of &str and add parsing of body.
+ // TODO(andrew): add some error handling.
pub fn from(data: &str) -> Option<Request> {
let lines = data.split("\r\n").collect::<Vec<&str>>();