diff options
| author | Andrew <saintruler@gmail.com> | 2021-02-14 14:38:03 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2021-02-14 14:38:03 +0400 |
| commit | ad92fb3dc6a3350b7b8952be40c5c3a7aa543892 (patch) | |
| tree | 24a11fc60e0922aa93ac2dfdece99b2e8dc36a10 /spider/src/request.rs | |
| parent | 053534d753439fcf47168f3515a03478d384be87 (diff) | |
Added more TODOs
Diffstat (limited to 'spider/src/request.rs')
| -rw-r--r-- | spider/src/request.rs | 3 |
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>>(); |