Trait ipfs_api_prelude::request::ApiRequest[][src]

pub trait ApiRequest: Serialize {
    const PATH: &'static str;
    const METHOD: Method;
    fn absolute_url(&self, base: &Uri) -> Result<Uri, Error> { ... }
}
Expand description

A request that can be made against the Ipfs API.

Associated Constants

Returns the API path that this request can be called on.

All paths should begin with ‘/’.

Method used to make the request.

Provided methods

Creates the absolute URL for an API resource given the base path of the service.

Implementors