#include <http.h>
Inheritance diagram for PHTTPTailFile:
Public Member Functions | |
PHTTPTailFile (const PString &filename) | |
PHTTPTailFile (const PString &filename, const PHTTPAuthority &auth) | |
PHTTPTailFile (const PURL &url, const PFilePath &file) | |
PHTTPTailFile (const PURL &url, const PFilePath &file, const PString &contentType) | |
PHTTPTailFile (const PURL &url, const PFilePath &file, const PHTTPAuthority &auth) | |
PHTTPTailFile (const PURL &url, const PFilePath &file, const PString &contentType, const PHTTPAuthority &auth) | |
virtual BOOL | LoadHeaders (PHTTPRequest &request) |
virtual BOOL | LoadData (PHTTPRequest &request, PCharArray &data) |
The difference between this and PHTTPFile is that it continually outputs the contents of the file, as per the unix "tail -f" command.
|
Contruct a new simple file resource for the HTTP space. If no MIME content type is specified then a default type is used depending on the file type. For example, "text/html" is used of the file type is ".html" or ".htm". The default for an unknown type is "application/octet-stream". |
|
|
|
|
|
|
|
|
|
|
|
Get a block of data that the resource contains.
Reimplemented from PHTTPFile. |
|
Get the headers for block of data (eg HTML) that the resource contains. This will fill in all the fields of the
Reimplemented from PHTTPFile. |