diff options
Diffstat (limited to 'ipfs-api/src/request/dag.rs')
-rw-r--r-- | ipfs-api/src/request/dag.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipfs-api/src/request/dag.rs b/ipfs-api/src/request/dag.rs index fc39872..c1a6d0c 100644 --- a/ipfs-api/src/request/dag.rs +++ b/ipfs-api/src/request/dag.rs @@ -6,11 +6,13 @@ // copied, modified, or distributed except according to those terms. // +use hyper::Method; use request::ApiRequest; #[derive(Serialize)] pub struct DagGet<'a> { - #[serde(rename = "arg")] pub path: &'a str, + #[serde(rename = "arg")] + pub path: &'a str, } impl<'a> ApiRequest for DagGet<'a> { @@ -23,4 +25,6 @@ impl_skip_serialize!(DagPut); impl ApiRequest for DagPut { const PATH: &'static str = "/dag/put"; + + const METHOD: &'static Method = &Method::Post; } |