Request

Request object is a class of TIdHTTPAppRequest.
It's inherited from TWebRequest, but add original RequestInfo and ResponseInfo property.

type
  TIdHTTPAppRequest = class(TWebRequest)
  public
    property RequestInfo: TIdHTTPRequestInfo read FRequestInfo;
    property ResponseInfo: TIdHTTPResponseInfo read FResponseInfo;
  end;

The runtime Request information is:
NameRequestRequest.RequestInfo
ClassNameTIdHTTPAppRequestTIdIisHTTPRequestInfo
CharSet(Null)
ConnectionKeep-AliveKeep-Alive
ContentEncoding
ContentLanguage(Null)
ContentLength0-1
ContentType
ContentVersion
Date-145571.4678840741
Expires-10
ETag(Null)
LastModified(Null)0
Pragma(Null)
TransferEncoding(Null)
Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
AcceptCharSet(Null)
AcceptEncoding(Null)br,gzip
AcceptLanguage(Null)en-US,en;q=0.5
From
Password(Null)
Referer
UserAgentCCBot/2.0 (https://commoncrawl.org/faq/)CCBot/2.0 (https://commoncrawl.org/faq/)
UserName(Null)
Hostwww.moonserver.cnwww.moonserver.cn
ProxyConnection(Null)
Range(Null)
AuthExists(Null)False
Cookies.CookieFileds(Null)
Cookies.Count0(Null)
Params
RawHTTPCommand(Null)
RemoteIP35.173.48.18GET /lessons/Lesson5/ HTTP/1.1
RemoteHost(Null)
Session(Null)(Null)
URL/lessons/Lesson5/
MethodGETGET
Version
AuthUsername(Null)
Query(Null)
QueryFields(Null)
QueryFields.Count0(Null)
Content(Null)
ContentFields.Text(Null)
ContentFields.Count0(Null)
PathInfo/lessons/Lesson5/(Null)
PathTranslated/lessons/Lesson5/(Null)
InternalPathInfo/lessons/Lesson5/(Null)
Files.Count0(Null)
Title(Null)
IfModifiedSince-1(Null)

Response

Response object is a class of TIdHTTPAppResponse.
It's inherited from TWebResponse, but add original RequestInfo and ResponseInfo property.

type
  TIdHTTPAppResponse = class(TWebResponse)
  public
    property ResponseInfo: TIdHTTPResponseInfo read FResponseInfo;
    property RequestInfo: TIdHTTPRequestInfo read FRequestInfo;
  end;

The runtime Response information is:
NameResponseResponse.ResponseInfo
ClassNameTIdHTTPAppResponseTIdHTTPResponseInfo
Version(Null)
ReasonStringOK(Null)
Server
RealmIndy/10.5.8.0
Allow(Null)
Location
ContentEncoding
ContentTypetext/htmltext/html
ContentVersion
DerivedFrom(Null)
Title(Null)
StatusCode2000
ContentLength51845184
Date-1-1
Expires-1-1
LastModified-1-1
Content53880
CustomHeaders.Text(Null)
CustomHeaders.Count0(Null)
FreeStreamFalse(Null)
CacheControl(Null)
CharSet(Null)
Connection(Null)close
ContentDisposition(Null)
ContentEncoding
ContentLanguage(Null)
ContentLength(Null)5953
ETag(Null)
Pragma(Null)
TransferEncoding(Null)
AcceptRanges(Null)
ProxyConnection(Null)
CloseConnection(Null)True
HeaderHasBeenWritten(Null)True
ServerSoftware(Null)

WebModule

WebModule object is a class of TAppWebModule.
It's inherited from TWebModule, but add a little method.

type
  TAppWebModule = class(TWebModule)
  public
    function SendFile(Request: TWebRequest; Response: TWebResponse;
      const AFileName: string = '; MinZipSize: Integer = 1024; MaxAge: Integer = -1): Integer;
    function SendContent(Request: TWebRequest; Response: TWebResponse;
      const AContent: string = '; AStatusCode: Integer = 200; MinZipSize: Integer = 1024): Integer;
  public
    property Values[AName: string]: Variant read GetValues write SetValues;
  end;

The runtime WebModule information is:
NameWebModuleDescription
ClassNameTAppWebModule
ValuesSome variant of current page
ContentZipType0Control the content to compress.0=auto;1=NotZip;2=ForceZip
MinZipSize1024Minimized compress content size; Load from config; you can customize it in current page.0=NotZip
MaxCacheFileSize10485760Cached the file size;Load from config; do not change.
yes, you can change the compress option to customize current page,ie:
WM.Values['MinZipSize'] := 512;//Only this page.
The client browser is not support compress.

Other

This page is generated at:2024-10-06 11:13:45.200