pub struct Call { /* private fields */ }
Expand description
Interface to talk with a http server
Implementations§
Source§impl Call
impl Call
Sourcepub fn set_url_query(&mut self, q: Option<&str>)
pub fn set_url_query(&mut self, q: Option<&str>)
change url objects query information
Sourcepub fn request<S: Serialize>(
&self,
method: CallMethod,
path: &str,
body: Option<&S>,
) -> GGRResult<CallResponse>
pub fn request<S: Serialize>( &self, method: CallMethod, path: &str, body: Option<&S>, ) -> GGRResult<CallResponse>
call the do_request function two times. One with digest and the other with basic http authentication methods. The first success returnes a CallResponse
Sourcepub fn get(&self, path: &str) -> GGRResult<CallResponse>
pub fn get(&self, path: &str) -> GGRResult<CallResponse>
Convenience method that performs a GET
request.
Sourcepub fn delete(&self, path: &str) -> GGRResult<CallResponse>
pub fn delete(&self, path: &str) -> GGRResult<CallResponse>
Convenience method that performs a DELETE
request.
Auto Trait Implementations§
impl !Freeze for Call
impl !RefUnwindSafe for Call
impl Send for Call
impl !Sync for Call
impl Unpin for Call
impl !UnwindSafe for Call
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