Trait kinto_http::request::KintoRequest
[−]
[src]
pub trait KintoRequest { fn preparer(&mut self) -> &mut RequestPreparer; fn if_match(&mut self, if_match: IfMatch) -> &mut Self { ... } fn if_none_match(&mut self, if_match: IfNoneMatch) -> &mut Self { ... } fn send(&mut self) -> Result<ResponseWrapper, KintoError> { ... } }
Base trait with options shared with all kinto requests
Required Methods
fn preparer(&mut self) -> &mut RequestPreparer
Provided Methods
fn if_match(&mut self, if_match: IfMatch) -> &mut Self
Set If-Match header.
fn if_none_match(&mut self, if_match: IfNoneMatch) -> &mut Self
Set If-None-Match header.
fn send(&mut self) -> Result<ResponseWrapper, KintoError>
Send the request.
Implementors
impl KintoRequest for GetCollection
impl KintoRequest for DeleteCollection
impl KintoRequest for CreateRecord
impl KintoRequest for GetRecord
impl KintoRequest for UpdateRecord
impl KintoRequest for PatchRecord
impl KintoRequest for DeleteRecord
impl KintoRequest for BatchRequest