cpp-ipfs-http-client
IPFS C++ client library
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
ipfs::http::FileUpload Struct Reference

HTTP file upload. More...

#include <ipfs/http/transport.h>

Public Types

enum class  Type { kFileContents , kFileName }
 The type of the data member. More...
 

Public Attributes

const std::string path
 File name to pretend to the web server.
 
Type type
 The type of the data member.
 
const std::string data
 The data to be added.
 

Detailed Description

HTTP file upload.

Member Enumeration Documentation

◆ Type

enum class ipfs::http::FileUpload::Type
strong

The type of the data member.

Enumerator
kFileContents 

The file contents, put into a string by the caller.

For small files.

kFileName 

File whose contents is streamed to the web server.

For big files.

Member Data Documentation

◆ data

const std::string ipfs::http::FileUpload::data

The data to be added.

Either a file name from which to read the data or the contents itself.


The documentation for this struct was generated from the following file: