pub struct Client {
pub url: String,
/* private fields */
}Fields§
§url: StringImplementations§
Source§impl Client
impl Client
pub fn new() -> Self
pub fn debug(&mut self)
pub fn post(&mut self, url: &str) -> &mut Self
pub fn get(&mut self, url: &str) -> &mut Self
pub fn put(&mut self, url: &str) -> &mut Self
pub fn patch(&mut self, url: &str) -> &mut Self
pub fn delete(&mut self, url: &str) -> &mut Self
pub fn head(&mut self, url: &str) -> &mut Self
pub fn trace(&mut self, url: &str) -> &mut Self
pub fn header(&mut self, key: &str, value: &str) -> &mut Self
pub fn query(&mut self, params: JsonValue) -> &mut Self
pub fn raw_stream(&mut self, data: Vec<u8>, content_type: &str) -> &mut Self
Sourcepub fn form_urlencoded(&mut self, data: JsonValue) -> &mut Self
pub fn form_urlencoded(&mut self, data: JsonValue) -> &mut Self
FormData请求
pub fn send(&mut self) -> Result<Response, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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