HttpFile
Description
- Derived from
-
FileBase abstract
The HttpFile class is an implementation of the IFile interface that accesses a resource on a web server via HTTP/1.1 using byte range requests.
Usually, HttpFile objects are created indirectly via IFileSystem.FileNew of HttpFileSystem and are then accessed through the IFile interface.
Public / Methods
GetMetadata
Fetches file metadata via a HEAD request, if necessary.
This method is called automatically by IFile.GetLength and IFile.GetTimestamp. The fetched file metadata is cached until IFlushable.Flush is called.
- IOException
-
If an I/O error has occurred.
Listing
Calls HttpFileListing.Fetch with httpListing in and then delegates to ListingAdd, unless the listing is null.
This is a convenience helper for adding an HTTP listing globally for the whole duration the application is running.