http_request/request/request/
type.rs

1use crate::*;
2
3/// Result type for HTTP requests, containing either a response or error.
4pub type RequestResult = Result<BoxResponseTrait, RequestError>;
5
6/// Boxed trait object for asynchronous HTTP requests.
7pub type BoxAsyncRequestTrait = Box<dyn AsyncRequestTrait<RequestResult = RequestResult>>;
8
9/// Boxed trait object for synchronous HTTP requests.
10pub type BoxRequestTrait = Box<dyn RequestTrait<RequestResult = RequestResult>>;
11
12/// Boxed trait object for asynchronous read/write streams.
13pub(crate) type BoxAsyncReadWrite = Box<dyn AsyncReadWrite>;
14
15/// Boxed trait object for synchronous read/write streams.
16pub(crate) type BoxReadWrite = Box<dyn ReadWrite>;