pub struct Ghostwire { /* private fields */ }Expand description
A Cloudflare-aware async HTTP client.
Implementations§
Source§impl Ghostwire
impl Ghostwire
Sourcepub fn builder() -> GhostwireBuilder
pub fn builder() -> GhostwireBuilder
Return a fluent builder.
pub async fn get(&mut self, url: &str) -> Result<Response>
pub async fn post_bytes(&mut self, url: &str, body: Bytes) -> Result<Response>
pub async fn post_form( &mut self, url: &str, form: Vec<(String, String)>, ) -> Result<Response>
Auto Trait Implementations§
impl Freeze for Ghostwire
impl !RefUnwindSafe for Ghostwire
impl Send for Ghostwire
impl Sync for Ghostwire
impl Unpin for Ghostwire
impl UnsafeUnpin for Ghostwire
impl !UnwindSafe for Ghostwire
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