Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetNetIf NTPClient_NetServices mbed ConfigFile
HTTPFile Class Reference
HTTP Client data container for files. More...
#include <HTTPFile.h>
Inherits HTTPData, and HTTPData.
Public Member Functions | |
| HTTPFile (const char *path) | |
| Instantiates data source/sink with file in param. | |
| virtual void | clear () |
| Forces file closure. | |
| HTTPFile (const char *path) | |
| Instantiates data source/sink with file in param. | |
| virtual void | clear () |
| Forces file closure. | |
Friends | |
| class | HTTPClient |
Detailed Description
HTTP Client data container for files.
This class provides file access/storage for HTTP requests and responses' data payloads.
Definition at line 40 of file LPC1768/services/http/client/data/HTTPFile.h.
Constructor & Destructor Documentation
| HTTPFile | ( | const char * | path ) |
Instantiates data source/sink with file in param.
Uses file at path path. It will be opened when some data has to be read/written from/to it and closed when this operation is complete or on destruction of the instance. Note that the file will be opened with mode "w" for writing and mode "r" for reading, so the file will be cleared between each request if you are using it for writing.
- Note:
- Note that to use this you must instantiate a proper file system (such as the LocalFileSystem or the SDFileSystem).
| HTTPFile | ( | const char * | path ) |
Instantiates data source/sink with file in param.
Uses file at path path. It will be opened when some data has to be read/written from/to it and closed when this operation is complete or on destruction of the instance. Note that the file will be opened with mode "w" for writing and mode "r" for reading, so the file will be cleared between each request if you are using it for writing.
- Note:
- Note that to use this you must instantiate a proper file system (such as the LocalFileSystem or the SDFileSystem).
Member Function Documentation
| virtual void clear | ( | ) | [virtual] |
Forces file closure.
| virtual void clear | ( | ) | [virtual] |
Forces file closure.
Generated on Tue Jul 12 2022 10:57:43 by
1.7.2