Struct product_os_request::ProductOSRequester
source · pub struct ProductOSRequester { /* private fields */ }Implementations§
source§impl ProductOSRequester
impl ProductOSRequester
pub fn new() -> Self
pub fn add_header(&mut self, name: String, value: String, is_sensitive: bool)
pub fn set_headers(&mut self, headers: HashMap<String, String>)
pub fn force_secure(&mut self, sec: bool)
pub fn trust_all_certificates(&mut self, trust: bool)
pub fn trust_any_certificate_for_hostname(&mut self, trust: bool)
pub fn set_timeout(&mut self, time: u64)
pub fn set_connect_timeout(&mut self, time: u64)
pub fn add_trusted_certificate_pem(&mut self, certificate: Vec<u8>)
pub fn get_trusted_certificates(&self) -> &Vec<Vec<u8>>
pub fn set_redirect_policy(&mut self, policy: RedirectPolicy)
pub fn set_proxy(&mut self, proxy: Option<(Protocol, SocketAddr)>)
pub fn new_request(&self, method: Method, url: String) -> ProductOSRequest
pub async fn request( &self, r: ProductOSRequest ) -> Result<ProductOSResponse, Error>
pub async fn request_simple( &self, method: Method, url: &str ) -> Result<ProductOSResponse, Error>
pub async fn request_raw( &self, r: Request<Body> ) -> Result<ProductOSResponse, Error>
Trait Implementations§
source§impl Clone for ProductOSRequester
impl Clone for ProductOSRequester
source§fn clone(&self) -> ProductOSRequester
fn clone(&self) -> ProductOSRequester
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ProductOSRequester
impl Send for ProductOSRequester
impl Sync for ProductOSRequester
impl Unpin for ProductOSRequester
impl !UnwindSafe for ProductOSRequester
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