cpp-ipfs-http-client
IPFS C++ client library
|
Convenience interface for talking basic HTTP. More...
#include <ipfs/http/transport.h>
Public Member Functions | |
virtual | ~Transport () |
Destructor. More... | |
virtual void | Fetch (const std::string &url, const std::vector< FileUpload > &files, std::iostream *response)=0 |
Fetch the contents of a given URL. More... | |
virtual void | UrlEncode (const std::string &raw, std::string *encoded)=0 |
URL encode a string. More... | |
Convenience interface for talking basic HTTP.
|
inlinevirtual |
Destructor.
|
pure virtual |
Fetch the contents of a given URL.
If any files are provided in files
, they are submitted using "Content-Type: multipart/form-data".
std::exception | if any error occurs including erroneous HTTP status code |
[in] | url | URL to get. |
[in] | files | List of files to upload. |
[out] | response | Output to save the response body to. |
Implemented in ipfs::http::TransportCurl.
|
pure virtual |
URL encode a string.
[in] | raw | Input string to encode. |
[out] | encoded | URL encoded result. |
Implemented in ipfs::http::TransportCurl.