http_request/response/
type.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use super::{
    r#trait::ResponseTrait, response_binary::r#type::HttpResponseBinary,
    response_text::r#type::HttpResponseText,
};

/// A type alias for a boxed dynamic trait object implementing the `ResponseTrait` trait.
///
/// This alias defines a `ResponseTrait` as a `Box` containing any type that implements the
/// `ResponseTrait` trait, with associated types `OutputText` set to `HttpResponseText`
/// and `OutputBinary` set to `HttpResponseBinary`. It allows for flexible handling of
/// HTTP responses that can be either in text or binary format.
pub type BoxResponseTrait =
    Box<dyn ResponseTrait<OutputText = HttpResponseText, OutputBinary = HttpResponseBinary>>;