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. | |
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.
|
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 | [in] URL to get. |
[in] | files | [in] List of files to upload. |
[out] | response | [out] Output to save the response body to. |
Implemented in ipfs::http::TransportCurl.
|
pure virtual |
URL encode a string.
[in] | raw | [in] Input string to encode. |
[out] | encoded | [out] URL encoded result. |
Implemented in ipfs::http::TransportCurl.