MCPcopy Create free account
hub / github.com/SmingHub/Sming / setFile

Method setFile

Sming/Components/Network/src/Network/Http/HttpRequest.h:111–117  ·  view source on GitHub ↗

* @brief Sets a file to be sent * @param formElementName The name of the element in the form * @param stream Pointer to the stream (doesn't have to be a FileStream) * * @retval HttpRequest* */

Source from the content-addressed store, hash-verified

109 * @retval HttpRequest*
110 */
111 HttpRequest* setFile(const String& formElementName, ReadWriteStream* stream)
112 {
113 if(stream != nullptr) {
114 files[formElementName] = stream;
115 }
116 return this;
117 }
118
119#ifdef ENABLE_HTTP_REQUEST_AUTH
120 // Authentication adapters set here

Callers 1

connectOkFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected