Struct libgerrit::call::CallRequest
[−]
[src]
pub struct CallRequest<'a> { /* fields omitted */ }
present a http request
Methods
impl<'a> CallRequest<'a>
[src]
fn with_header(self, key: &str, value: &str) -> GGRResult<CallRequest<'a>>
[src]
adds a specific header to the request
fn with_json_body<S: Serialize>(
&mut self,
body: &S
) -> GGRResult<&mut CallRequest<'a>>
[src]
&mut self,
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>>
[src]
attaches some form data to the request.
fn follow_location(&mut self, val: bool) -> GGRResult<&mut CallRequest<'a>>
[src]
enables or disables redirects. The default is off.
fn send_into<W: Write>(self, out: &mut W) -> GGRResult<CallResponse>
[src]
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>
[src]
Sends the request and reads the response body into the response object.