Difference between revisions of "THTTPServerResponse"

From Ultibo.org
Jump to: navigation, search
 
Line 260: Line 260:
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 
<pre style="border: 0; padding-bottom:0px;">procedure THTTPServerResponse.SetConnectionClose(AConnectionClose:Boolean);</pre>
 
<pre style="border: 0; padding-bottom:0px;">procedure THTTPServerResponse.SetConnectionClose(AConnectionClose:Boolean);</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function THTTPServerResponse.SetCookie(const AName,AValue:String; AAttributes:THTTPCookieAttributes):Boolean;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function THTTPServerResponse.SetCookieEx(const AName,AValue:String; AAttributes:THTTPCookieAttributes; AReplace:Boolean):Boolean;</pre>
 
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">

Latest revision as of 02:46, 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.SetCookie(const AName,AValue:String; AAttributes:THTTPCookieAttributes):Boolean;
Description: To be documented
Note None documented


function THTTPServerResponse.SetCookieEx(const AName,AValue:String; AAttributes:THTTPCookieAttributes; AReplace:Boolean):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