Difference between revisions of "THTTPFolder"
From Ultibo.org
(Created page with "Return to Unit HTTP __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-collapse...") |
|||
Line 39: | Line 39: | ||
|- | |- | ||
| <code>FAllowSubtree:Boolean;</code> | | <code>FAllowSubtree:Boolean;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>FHideSubfolders:Boolean;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>FForceTrailingSlash:Boolean;</code> | ||
| | | | ||
|- | |- | ||
Line 62: | Line 70: | ||
|- | |- | ||
| <code>procedure SetAllowSubtree(AAllowSubtree:Boolean);</code> | | <code>procedure SetAllowSubtree(AAllowSubtree:Boolean);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>procedure SetHideSubfolders(AHideSubfolders:Boolean);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>procedure SetForceTrailingSlash(AForceTrailingSlash:Boolean);</code> | ||
| | | | ||
|- | |- | ||
Line 96: | Line 112: | ||
| <code>property AllowSubtree:Boolean read FAllowSubtree write SetAllowSubtree;</code> | | <code>property AllowSubtree:Boolean read FAllowSubtree write SetAllowSubtree;</code> | ||
| | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>property HideSubfolders:Boolean read FHideSubfolders write SetHideSubfolders;</code> | ||
+ | | If not AllowSubtree then don't list sub folders of the configured folder | ||
+ | |- | ||
+ | | <code>property ForceTrailingSlash:Boolean read FForceTrailingSlash write SetForceTrailingSlash;</code> | ||
+ | | If a folder request doesn't contain a trailing slash then redirect to add it | ||
|- | |- | ||
|} | |} |
Revision as of 03:44, 10 February 2022
Return to Unit HTTP
Description
To be documented
Class definitions
[Expand]
THTTPFolder = class(THTTPDocument)
Function declarations
[Expand]
procedure THTTPFolder.SetAllowListing(AAllowListing:Boolean);
Description: To be documented
[Expand]
procedure THTTPFolder.SetAllowSubtree(AAllowSubtree:Boolean);
Description: To be documented
[Expand]
function THTTPFolder.DoGet(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean;
Description: Base GET Method for an HTTP Folder
[Expand]
function THTTPFolder.DoHead(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean;
Description: Base HEAD Method for an HTTP Folder
[Expand]
function THTTPFolder.DoGetFile(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse; const AFile:String):Boolean;
Description: To be documented
[Expand]
function THTTPFolder.DoGetFolder(AHost:THTTPHost;ARequest:THTTPServerRequest;AResponse:THTTPServerResponse;const AFolder:String):Boolean;
Description: To be documented
Return to Unit Reference