http_type/response/
struct.rs

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