* @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* */
| 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 |