pub struct ReqwestHttpSend { /* private fields */ }Expand description
Reqwest-based implementation of the HttpSend trait.
This struct wraps a reqwest::Client and provides HTTP request
functionality for the reqsign ecosystem.
Implementations§
Source§impl ReqwestHttpSend
impl ReqwestHttpSend
Sourcepub fn new(client: Client) -> Self
pub fn new(client: Client) -> Self
Create a new ReqwestHttpSend with a custom reqwest::Client.
This allows you to configure the client with specific settings like timeouts, proxies, or custom headers.
§Example
use reqsign_http_send_reqwest::ReqwestHttpSend;
use reqwest::Client;
let client = Client::builder()
.timeout(std::time::Duration::from_secs(30))
.build()
.unwrap();
let http_send = ReqwestHttpSend::new(client);Trait Implementations§
Source§impl Debug for ReqwestHttpSend
impl Debug for ReqwestHttpSend
Source§impl Default for ReqwestHttpSend
impl Default for ReqwestHttpSend
Source§fn default() -> ReqwestHttpSend
fn default() -> ReqwestHttpSend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReqwestHttpSend
impl !RefUnwindSafe for ReqwestHttpSend
impl Send for ReqwestHttpSend
impl Sync for ReqwestHttpSend
impl Unpin for ReqwestHttpSend
impl !UnwindSafe for ReqwestHttpSend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more