pub struct HttpClientConfig<'a> {
pub domain_name: &'a str,
pub port: u16,
pub user_agent: &'a str,
}
Expand description
HTTP client’s configuration.
Fields§
§domain_name: &'a str
Domain name target
port: u16
Server TCP port
user_agent: &'a str
Client’s User-Agent
HTTP header
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HttpClientConfig<'a>
impl<'a> RefUnwindSafe for HttpClientConfig<'a>
impl<'a> Send for HttpClientConfig<'a>
impl<'a> Sync for HttpClientConfig<'a>
impl<'a> Unpin for HttpClientConfig<'a>
impl<'a> UnwindSafe for HttpClientConfig<'a>
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