Struct gerritlib::call::CallRequest [] [src]

pub struct CallRequest<'a> { /* fields omitted */ }

Represents a HTTP request

For usage we fill the CallRequest with an header and a body. Later we call via handler the gerrit server.

Methods

impl<'a> CallRequest<'a>
[src]

creates new instance of [CallRequest] with a curl-handler, the HTTP method and the url endpoint

Does the send function.

NOTICE: The first 4 characters are cutted from the returned content. We want only json data which has a prevention against XSSI attacks. More here: https://gerrit-documentation.storage.googleapis.com/Documentation/2.12.3/rest-api.html#output