diff options
| author | Andrew <saintruler@gmail.com> | 2021-02-14 18:33:29 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2021-02-14 18:33:29 +0400 |
| commit | 04a3c64713ae4f0a7f1b5cfdab132f78cc33a862 (patch) | |
| tree | 012bd7b0a0352b48103a8a6b40dcaa919fbb2111 /spider/src/response.rs | |
| parent | e59827e90c65f781cf054b52614308f538f7b018 (diff) | |
Renamed path field in Request struct to resource and implemented Display trait for HttpServer
Diffstat (limited to 'spider/src/response.rs')
| -rw-r--r-- | spider/src/response.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spider/src/response.rs b/spider/src/response.rs index 3873315..fe1df78 100644 --- a/spider/src/response.rs +++ b/spider/src/response.rs @@ -24,6 +24,8 @@ impl Response { } pub fn format<'a>(&self) -> Vec<u8> { + // FIXME(andrew): is undefined status code an error that should + // be handled here? let status_text = match get_status_text(self.code) { Some(text) => text, None => String::from("UNDEFINED") |