Struct gerritlib::call::CallRequest
[−]
[src]
pub struct CallRequest<'a> { /* fields omitted */ }
Methods
impl<'a> CallRequest<'a>
[src]
fn with_header(self, key: &str, value: &str) -> GGRResult<CallRequest<'a>>
adds a specific header to the request
fn with_json_body<S: Serialize>(&mut self,
body: &S)
-> GGRResult<&mut CallRequest<'a>>
body: &S)
-> GGRResult<&mut CallRequest<'a>>
sets the JSON request body for the request.
fn with_form_data(&mut self, form: Form) -> GGRResult<&mut CallRequest<'a>>
attaches some form data to the request.
fn follow_location(&mut self, val: bool) -> GGRResult<&mut CallRequest<'a>>
enables or disables redirects. The default is off.
fn send_into<W: Write>(self, out: &mut W) -> GGRResult<CallResponse>
Sends the request and writes response data into the given file instead of the response object's in memory buffer.
fn send(self) -> GGRResult<CallResponse>
Sends the request and reads the response body into the response object.