pub struct AuthenticatedClientBlocking { /* private fields */ }
Expand description
A blocking client that can be used to make authenticated requests, based on the reqwest::blocking::Client
By default it uses the fallback storage in the default default_auth_store_fallback_directory
.
Implementations§
source§impl AuthenticatedClientBlocking
impl AuthenticatedClientBlocking
sourcepub fn from_client(
client: Client,
auth_storage: AuthenticationStorage
) -> AuthenticatedClientBlocking
pub fn from_client( client: Client, auth_storage: AuthenticationStorage ) -> AuthenticatedClientBlocking
Create a new authenticated client from the given client and authentication storage
source§impl AuthenticatedClientBlocking
impl AuthenticatedClientBlocking
sourcepub fn get<U: IntoUrl>(&self, url: U) -> RequestBuilder
pub fn get<U: IntoUrl>(&self, url: U) -> RequestBuilder
Create a GET request builder for the given URL (see also reqwest::blocking::Client::get
)
sourcepub fn post<U: IntoUrl>(&self, url: U) -> RequestBuilder
pub fn post<U: IntoUrl>(&self, url: U) -> RequestBuilder
Create a POST request builder for the given URL (see also reqwest::blocking::Client::post
)
sourcepub fn head<U: IntoUrl>(&self, url: U) -> RequestBuilder
pub fn head<U: IntoUrl>(&self, url: U) -> RequestBuilder
Create a HEAD request builder for the given URL (see also reqwest::blocking::Client::head
)
sourcepub fn request<U: IntoUrl>(&self, method: Method, url: U) -> RequestBuilder
pub fn request<U: IntoUrl>(&self, method: Method, url: U) -> RequestBuilder
Create a request builder for the given URL (see also reqwest::blocking::Client::request
)
Trait Implementations§
source§impl Default for AuthenticatedClientBlocking
impl Default for AuthenticatedClientBlocking
source§fn default() -> AuthenticatedClientBlocking
fn default() -> AuthenticatedClientBlocking
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AuthenticatedClientBlocking
impl Send for AuthenticatedClientBlocking
impl Sync for AuthenticatedClientBlocking
impl Unpin for AuthenticatedClientBlocking
impl !UnwindSafe for AuthenticatedClientBlocking
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.