Struct gerritlib::call::Call
[−]
[src]
pub struct Call { /* fields omitted */ }
Methods
impl Call
[src]
fn new(url: &Url) -> Call
fn set_url_query(&mut self, q: Option<&str>)
fn get(&self, path: &str) -> GGRResult<CallResponse>
Convenience method that performs a GET
request.
fn delete(&self, path: &str) -> GGRResult<CallResponse>
Convenience method that performs a DELETE
request.
fn post<S: Serialize>(&self, path: &str, body: &S) -> GGRResult<CallResponse>
Convenience method that performs a POST
request with JSON data.
fn put<S: Serialize>(&self, path: &str, body: &S) -> GGRResult<CallResponse>
Convenience method that performs a PUT
request with JSON data.