![]() |
Qore FileLocationHandler Module Reference 2.3
|
The FileLocationHandler module provides an API for returning file data based on a URL-like location string.
To retrieve file data, call one of:
To write file data, call one of:
To register a location handler based on a scheme, call one of:
This module provides the following classes:
"data://" locations (immedidate data in the location URL)"file://" locations (the default if no scheme is present in the location string)"ftp://" and "ftps://" locations"http://" and "https://" locations"rest://" and "rests://" locations"sftp://" locationsThe QORE_FILE_LOCATION_HANDLERS environment variable will be read to initialize modules that provide support for custom URL schemes; multiple modules can be separated by the OS-specific path separator (: on Linux / UNIX, ; on Windows).
Each module listed in this environment variable should call either FileLocationHandler::registerHandler() or FileLocationHandler::tryRegisterHandler() in its init code to register a handler for a new scheme.
rest:// and rests:// locations (issue 4669)data:// locations (issue 4626)