pub struct Outgoing { /* private fields */ }Expand description
Clones share connections and breakers.
Implementations§
Source§impl Outgoing
impl Outgoing
pub fn get(&self, path: &str) -> Request<'_>
pub fn post(&self, path: &str) -> Request<'_>
pub fn put(&self, path: &str) -> Request<'_>
pub fn patch(&self, path: &str) -> Request<'_>
pub fn delete(&self, path: &str) -> Request<'_>
Sourcepub fn get_url(&self, url: &str) -> Request<'_>
pub fn get_url(&self, url: &str) -> Request<'_>
An absolute URL on one of the vendor’s hosts (its BASE_URL’s and HOSTS), for a
vendor whose endpoints live on several hosts, as an OAuth provider’s do.
pub fn post_url(&self, url: &str) -> Request<'_>
Sourcepub fn untrusted(&self) -> Untrusted<'_>
pub fn untrusted(&self) -> Untrusted<'_>
Public HTTPS hosts only, whatever the vendor allows, and no redirects.
pub fn operation<T>( &self, name: &'static str, work: impl Future<Output = Result<T>>, ) -> impl Future<Output = Result<T>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Outgoing
impl !UnwindSafe for Outgoing
impl Forget for Outgoing
impl Freeze for Outgoing
impl Send for Outgoing
impl Sync for Outgoing
impl Unpin for Outgoing
impl UnsafeUnpin for Outgoing
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