pub trait ApiRequest: Serialize + Send {
    const PATH: &'static str;
    const METHOD: Method = http::Method::POST;

    fn absolute_url(&self, base: &Uri) -> Result<Uri, Error> { ... }
}
Expand description

A request that can be made against the Ipfs API.

Required Associated Constants§

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

All paths should begin with ‘/’.

Provided Associated Constants§

Method used to make the request.

Provided Methods§

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

Implementors§