cpp-ipfs-http-client
IPFS C++ client library
|
20 #ifndef IPFS_HTTP_TRANSPORT_H
21 #define IPFS_HTTP_TRANSPORT_H
66 const std::string& url,
68 const std::vector<FileUpload>& files,
70 std::iostream* response) = 0;
77 const std::string& raw,
79 std::string* encoded) = 0;
const std::string data
The data to be added.
Definition: transport.h:49
virtual void UrlEncode(const std::string &raw, std::string *encoded)=0
URL encode a string.
@ kFileName
File whose contents is streamed to the web server.
virtual ~Transport()
Destructor.
Definition: transport.h:82
const std::string path
File name to pretend to the web server.
Definition: transport.h:42
Type
The type of the data member.
Definition: transport.h:34
virtual void Fetch(const std::string &url, const std::vector< FileUpload > &files, std::iostream *response)=0
Fetch the contents of a given URL.
Type type
The type of the data member.
Definition: transport.h:45
Convenience interface for talking basic HTTP.
Definition: transport.h:53
@ kFileContents
The file contents, put into a string by the caller.
IPFS namespace.
Definition: client.h:32
HTTP file upload.
Definition: transport.h:32