http_type/response/struct.rs
1use crate::*;
2
3/// Represents a parsed HTTP response.
4#[derive(Debug, Clone, Data, DisplayDebug)]
5pub struct Response {
6 /// The HTTP version used in the response.
7 pub(super) version: ResponseVersion,
8 /// The HTTP status code (e.g., 200, 404).
9 pub(super) status_code: ResponseStatusCode,
10 /// The reason phrase associated with the status code (e.g., "OK", "Not Found").
11 #[set(skip)]
12 pub(super) reason_phrase: ResponseReasonPhrase,
13 /// The response headers as key-value pairs.
14 pub(super) headers: ResponseHeaders,
15 /// The binary body content of the response.
16 #[set(skip)]
17 pub(super) body: ResponseBody,
18}