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    #[set(skip)]
8    pub(super) version: ResponseVersion,
9    /// The HTTP status code (e.g., 200, 404).
10    pub(super) status_code: ResponseStatusCode,
11    /// The reason phrase associated with the status code (e.g., "OK", "Not Found").
12    #[set(skip)]
13    pub(super) reason_phrase: ResponseReasonPhrase,
14    /// The response headers as key-value pairs.
15    pub(super) headers: ResponseHeaders,
16    /// The binary body content of the response.
17    #[set(skip)]
18    pub(super) body: ResponseBody,
19}