| 193 | fn default() -> Self { |
| 194 | Self { |
| 195 | body: Arc::from(""), |
| 196 | body_bytes: Bytes::new(), |
| 197 | cached_raw_body: None, |
| 198 | cached_formatted_body: None, |
| 199 | body_hash: 0, |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | impl Default for ResponseData { |
| 205 | fn default() -> Self { |
| 206 | Self { |
| 207 | status_code: 0, |
| 208 | status_text: String::new(), |
| 209 | headers: HashMap::new(), |
| 210 | request_headers: HashMap::new(), |
| 211 | request_url: String::new(), |
| 212 | payload: ResponsePayload::default(), |
| 213 | body_size_bytes: 0, |
| 214 | duration_ms: 0, |
| 215 | content_type: None, |
| 216 | } |