Internal Pimpl structure of class HttpIo.
More...
|
| HttpImpl (const std::string &path, size_t blockSize) |
| Constructor.
|
|
long | getFileLength () |
| Get the length (in bytes) of the remote file. More...
|
|
void | getDataByRange (long lowBlock, long highBlock, std::string &response) |
| Get the data by range. More...
|
|
void | writeRemote (const byte *data, size_t size, long from, long to) |
| Submit the data to the remote machine. The data replace a part of the remote file. The replaced part of remote file is indicated by from and to parameters. More...
|
|
| Impl (const std::string &path, size_t blockSize) |
| Constructor.
|
|
virtual | ~Impl () |
| Destructor. Releases all managed memory.
|
|
virtual size_t | populateBlocks (size_t lowBlock, size_t highBlock) |
| Get the data from the remote machine and write them to the memory blocks. More...
|
|
Internal Pimpl structure of class HttpIo.
◆ getDataByRange()
void Exiv2::HttpIo::HttpImpl::getDataByRange |
( |
long |
lowBlock, |
|
|
long |
highBlock, |
|
|
std::string & |
response |
|
) |
| |
|
virtual |
◆ getFileLength()
long Exiv2::HttpIo::HttpImpl::getFileLength |
( |
| ) |
|
|
virtual |
◆ writeRemote()
void Exiv2::HttpIo::HttpImpl::writeRemote |
( |
const byte * |
data, |
|
|
size_t |
size, |
|
|
long |
from, |
|
|
long |
to |
|
) |
| |
|
virtual |
Submit the data to the remote machine. The data replace a part of the remote file. The replaced part of remote file is indicated by from and to parameters.
- Parameters
-
data | The data are submitted to the remote machine. |
size | The size of data. |
from | The start position in the remote file where the data replace. |
to | The end position in the remote file where the data replace. |
- Note
- The data are submitted to the remote machine via POST. This requires the script file on the remote machine to receive the data and edit the remote file. The server-side script may be specified with the environment string EXIV2_HTTP_POST. The default value is "/exiv2.php". More info is available at http://dev.exiv2.org/wiki/exiv2
- Exceptions
-
Implements Exiv2::RemoteIo::Impl.
References Exiv2::base64encode(), Exiv2::getEnv(), Exiv2::Uri::Host, Exiv2::http(), Exiv2::Uri::Parse(), Exiv2::Uri::Path, Exiv2::Uri::Port, Exiv2::RemoteIo::size(), Exiv2::string, Exiv2::Internal::stringFormat(), and Exiv2::urlencode().
The documentation for this class was generated from the following file: