Difference between revisions of "THTTPServerResponse"
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 77: | Line 77: | ||
|-  | |-  | ||
|colspan="2"|   | |colspan="2"|   | ||
| + | |-  | ||
| + | | <code>Cookies:THTTPCookies;</code>  | ||
| + | |    | ||
|-  | |-  | ||
| <code>Headers:THTTPHeaders;</code>  | | <code>Headers:THTTPHeaders;</code>  | ||
| Line 114: | Line 117: | ||
|-  | |-  | ||
| <code>property ConnectionClose:Boolean read GetConnectionClose write SetConnectionClose;</code>  | | <code>property ConnectionClose:Boolean read GetConnectionClose write SetConnectionClose;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | |colspan="2"|   | ||
| + | |-  | ||
| + | | <code>function SetCookie(const AName,AValue:String; AAttributes:THTTPCookieAttributes):Boolean;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>function SetCookieEx(const AName,AValue:String; AAttributes:THTTPCookieAttributes; AReplace:Boolean):Boolean;</code>  | ||
|    | |    | ||
|-  | |-  | ||
Revision as of 00:01, 24 October 2025
Return to Unit HTTP
Description
To be documented
Class definitions
THTTPServerResponse = class(TObject)
public 
 | |
 constructor Create(AThread:TWinsock2TCPServerThread);
 | 
|
 destructor Destroy; override;
 | 
|
private 
 | |
 FFlags:LongWord;
 | 
|
 FThread:TWinsock2TCPServerThread;
 | 
|
 function GetStatusSent:Boolean;
 | 
|
 function GetHeadersSent:Boolean;
 | 
|
 function GetContentSent:Boolean;
 | 
|
 function GetNoCache:Boolean;
 | 
|
 procedure SetNoCache(ANoCache:Boolean);
 | 
|
 function GetConnectionClose:Boolean;
 | 
|
 procedure SetConnectionClose(AConnectionClose:Boolean);
 | 
|
protected 
 | |
 FListener:THTTPListener;
 | 
|
public 
 | |
 Reason:String;
 | 
|
 Status:LongWord;
 | 
|
 Version:LongWord;
 | 
|
 Cookies:THTTPCookies;
 | 
|
 Headers:THTTPHeaders;
 | 
|
 ContentStream:TStream;
 | 
|
 ContentString:String;
 | 
|
 property Flags:LongWord read FFlags;
 | 
|
 property Thread:TWinsock2TCPServerThread read FThread;
 | 
|
 property StatusSent:Boolean read GetStatusSent;
 | 
|
 property HeadersSent:Boolean read GetHeadersSent;
 | 
|
 property ContentSent:Boolean read GetContentSent;
 | 
|
 property NoCache:Boolean read GetNoCache write SetNoCache;
 | 
|
 property ConnectionClose:Boolean read GetConnectionClose write SetConnectionClose;
 | 
|
 function SetCookie(const AName,AValue:String; AAttributes:THTTPCookieAttributes):Boolean;
 | 
|
 function SetCookieEx(const AName,AValue:String; AAttributes:THTTPCookieAttributes; AReplace:Boolean):Boolean;
 | 
|
 function SetHeader(const AName,AValue:String):Boolean;
 | 
|
 function SetHeaderEx(const AName,AValue:String; AReplace:Boolean):Boolean;
 | 
|
 function WriteResponse:Boolean;
 | 
|
 function WriteStatus:Boolean;
 | 
|
 function WriteHeaders:Boolean;
 | 
|
 function WriteContentStream(AContent:TStream; ASize:LongWord; ACompleted:Boolean):Boolean;
 | 
|
 function WriteContentString(const AContent:String; ASize:LongWord; ACompleted:Boolean):Boolean;
 | 
|
Function declarations
constructor THTTPServerResponse.Create(AThread:TWinsock2TCPServerThread);
Description: To be documented
| Note | None documented | 
|---|
 
destructor THTTPServerResponse.Destroy;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.GetStatusSent:Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.GetHeadersSent:Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.GetContentSent:Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.GetNoCache:Boolean;
Description: To be documented
| Note | None documented | 
|---|
procedure THTTPServerResponse.SetNoCache(ANoCache:Boolean);
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.GetConnectionClose:Boolean;
Description: To be documented
| Note | None documented | 
|---|
procedure THTTPServerResponse.SetConnectionClose(AConnectionClose:Boolean);
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.SetHeader(const AName,AValue:String):Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.SetHeaderEx(const AName,AValue:String; AReplace:Boolean):Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.WriteResponse:Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.WriteStatus:Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.WriteHeaders:Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.WriteContentStream(AContent:TStream; ASize:LongWord; ACompleted:Boolean):Boolean;
Description: To be documented
| Note | None documented | 
|---|
function THTTPServerResponse.WriteContentString(const AContent:String; ASize:LongWord; ACompleted:Boolean):Boolean;
Description: To be documented
| Note | None documented | 
|---|
Return to Unit Reference