summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/client.rs
AgeCommit message (Collapse)Author
2019-06-15Implement /dag/put routemake-dag-put-implMatthias Beyer
2019-04-04ipfs-api: Add hyper_tls for added HTTPS supportJannis
The `HttpsConnector` provided by hyper-tls supports both HTTP and HTTPS. Using this instead of the default `HttpConnector` allows to use the IpfsClient against HTTPS endpoints such as https://ipfs.infura.io:5001. To make creating an IpfsClient with an HTTPS URI possible, this commit adds a new constructor for `IpfsClient`: ```rust struct IpfsClient { ... pub fn new_from_uri(uri: &str) -> Result<IpfsClient, InvalidUri> { .... } } ``` The existing `IpfsClient::new` constructor is updated to use this. Tested with the current `ipfs-cli` as well as changing `ipfs-cli` to use `IpfsClient::new_from_uri("https://ipfs.infura.io:5001")` instead of `IpfsClient::default()`. Both work.
2019-02-13formatting; docs update; version increment; small refactorsFerris Tseng
2019-02-13Add actix feature for using actix-webSameer Puri
2019-02-09Impose 'static on multipart formsSameer Puri
2019-01-11Change impl Default to match go-ipfs-api behaviorSameer Puri
2018-12-31Fix clippy warningsSameer Puri
2018-12-31Run cargo fmtSameer Puri
2018-12-31Implement capability to add files/directories by path to IPFSSameer Puri
2018-08-04formattingFerris Tseng
2018-08-03switch from error-chain to failureLeonardo Yvens Schwarzstein
`error-chain` is likely to be deprecated.
2018-06-27fix doc testsFerris Tseng
2018-06-27turn off keep aliveFerris Tseng
2018-06-27add send bounds where necessaryFerris Tseng
2018-06-27get ipfs-api compilingFerris Tseng
2018-03-08add method to requestFerris Tseng
2018-01-23add /object/new and /object/dataFerris Tseng
2018-01-23add /bitswap/reprovideFerris Tseng
2018-01-23add shutdown commandFerris Tseng
2018-01-23add /name/publish and /name/resolveFerris Tseng
2018-01-23fix testsFerris Tseng
2018-01-23use Option instead of &OptionFerris Tseng
2018-01-23add todosFerris Tseng
2018-01-23add /key/rename and /key/rmFerris Tseng
2017-12-30clippy and formattingFerris Tseng
2017-12-11Uppercased path->PATH in constants.Simon Heath
2017-12-11Replaced path() method with associated const on ApiRequest traitSimon Heath
2017-12-08Updated sizes in type definitionsSimon Heath
Mostly from digging through the go code in various places. Rust doesn't really like 'usize' and 'isize' much because they're specifically the size of array indexes; kinda like size_t in C. So it can be annoying to use them on different platforms or in cross- platform API's or suck.
2017-12-05Merge pull request #5 from icefoxen/pin-addFerris Tseng
Fix a bug in the return type of pin_add()
2017-12-05Merge branch 'pin-add' of https://github.com/icefoxen/rust-ipfs-api-1 into ↵Simon Heath
pin-add
2017-12-05Fix a bug in the return type of pin()Simon Heath
derp. XD
2017-12-05Merge pull request #4 from icefoxen/pin-addFerris Tseng
Added /pin/add endpoint call
2017-12-04Updated pin_add() API slightly and added example.Simon Heath
2017-12-03finish writing docs; fix some API issuesFerris Tseng
2017-12-03add no_run attributeFerris Tseng
2017-12-01do not actually run the requestsFerris Tseng
2017-12-01reduce some duplicate code, and remove unnecessary functionsFerris Tseng
2017-11-30add documentationFerris Tseng
2017-11-30Added /pin/add endpoint callSimon Heath
2017-11-26fix compilation issueFerris Tseng
2017-11-26add filestore callsFerris Tseng
2017-11-26handle error codes returned by streaming routesFerris Tseng
2017-11-26refactoringFerris Tseng
2017-11-26stream read responsesFerris Tseng
2017-11-26take in a pointer to option insteadFerris Tseng
2017-11-25add dht and better serializationFerris Tseng
2017-11-25handle streaming errorsFerris Tseng
2017-11-24add tar commandsFerris Tseng
2017-11-24add implementation for files writeFerris Tseng
2017-11-24add block put commandFerris Tseng