http_request/response/
type.rs

1use super::{
2    r#trait::ResponseTrait, response_binary::r#type::HttpResponseBinary,
3    response_text::r#type::HttpResponseText,
4};
5
6/// A type alias for a boxed dynamic trait object implementing the `ResponseTrait` trait.
7///
8/// This alias defines a `ResponseTrait` as a `Box` containing any type that implements the
9/// `ResponseTrait` trait, with associated types `OutputText` set to `HttpResponseText`
10/// and `OutputBinary` set to `HttpResponseBinary`. It allows for flexible handling of
11/// HTTP responses that can be either in text or binary format.
12pub type BoxResponseTrait =
13    Box<dyn ResponseTrait<OutputText = HttpResponseText, OutputBinary = HttpResponseBinary>>;