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