#include <http.h>
Inheritance diagram for PHTTPFile:
Public Member Functions | |
PHTTPFile (const PString &filename) | |
PHTTPFile (const PString &filename, const PHTTPAuthority &auth) | |
PHTTPFile (const PURL &url, const PFilePath &file) | |
PHTTPFile (const PURL &url, const PFilePath &file, const PString &contentType) | |
PHTTPFile (const PURL &url, const PFilePath &file, const PHTTPAuthority &auth) | |
PHTTPFile (const PURL &url, const PFilePath &file, const PString &contentType, const PHTTPAuthority &auth) | |
virtual PHTTPRequest * | CreateRequest (const PURL &url, const PMIMEInfo &inMIME, const PMultipartFormInfoArray &multipartFormInfo, PHTTPServer &socket) |
virtual BOOL | LoadHeaders (PHTTPRequest &request) |
virtual BOOL | LoadData (PHTTPRequest &request, PCharArray &data) |
virtual PString | LoadText (PHTTPRequest &request) |
Protected Member Functions | |
PHTTPFile (const PURL &url, int dummy) | |
Protected Attributes | |
PFilePath | filePath |
|
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". |
|
|
|
|
|
|
|
|
|
|
|
|
|
Create a new request block for this type of resource.
Reimplemented from PHTTPResource. Reimplemented in PHTTPDirectory. |
|
Get a block of data that the resource contains.
Reimplemented from PHTTPResource. Reimplemented in PHTTPTailFile. |
|
Get the headers for block of data (eg HTML) that the resource contains. This will fill in all the fields of the
Implements PHTTPResource. Reimplemented in PHTTPTailFile, and PHTTPDirectory. |
|
Get a block of text data (eg HTML) that the resource contains. The default behaviour is to assert, one of #LoadText()# or #LoadData()# functions must be overridden for correct operation.
Reimplemented from PHTTPResource. Reimplemented in PHTTPDirectory. |
|
|