Struct iqhttp::HttpsClient [−][src]
pub struct HttpsClient { /* fields omitted */ }
HTTPS client.
This type provides a persistent connection to a particular hostname and allows requests by path and query string.
Implementations
impl HttpsClient
[src]
impl HttpsClient
[src]pub fn new(hostname: impl Into<String>) -> Self
[src]
pub fn new(hostname: impl Into<String>) -> Self
[src]Create a new HTTPS client which makes requests to the given hostname.
pub fn new_with_proxy(
hostname: impl Into<String>,
proxy_uri: Uri
) -> Result<Self>
[src]
This is supported on crate feature proxy
only.
pub fn new_with_proxy(
hostname: impl Into<String>,
proxy_uri: Uri
) -> Result<Self>
[src]This is supported on crate feature
proxy
only.Create a new HTTPS client which makes requests to the given hostname via the provided HTTP CONNECT proxy.
pub async fn request(&self, request: Request<Body>) -> Result<Response<Body>>
[src]
pub async fn request(&self, request: Request<Body>) -> Result<Response<Body>>
[src]Perform a low-level request using hyper’s types directly.
Auto Trait Implementations
impl !RefUnwindSafe for HttpsClient
impl Send for HttpsClient
impl Sync for HttpsClient
impl Unpin for HttpsClient
impl !UnwindSafe for HttpsClient
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self