()
| 120 | |
| 121 | /// HTTP Response data |
| 122 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 123 | pub struct ResponseData { |
| 124 | pub status_code: u16, |
| 125 | pub status_text: String, |
| 126 | /// Response headers received from the server |
| 127 | pub headers: HashMap<String, String>, |
| 128 | /// Headers that were actually sent with the request (incl. defaults like User-Agent) |
| 129 | #[serde(default)] |
| 130 | pub request_headers: HashMap<String, String>, |
| 131 | /// Final request URL after scheme normalization |
| 132 | #[serde(default)] |
| 133 | pub request_url: String, |
| 134 | #[serde(flatten)] |
| 135 | pub payload: ResponsePayload, |
| 136 | pub body_size_bytes: usize, |
| 137 | pub duration_ms: u64, |
| 138 | pub content_type: Option<String>, |
| 139 | } |
nothing calls this directly
no outgoing calls
no test coverage detected