Difference between revisions of "THTTPServerResponse"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit HTTP __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-collapse...")
 
(No difference)

Latest revision as of 06:33, 17 May 2018

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;  
 
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 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