[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
HTTP response representation
Source position: httpdefs.pp line 578
type TResponse = class(THTTPHeader) |
||
public |
||
constructor Create(); overload; |
|
Creates an HTTP response instance |
destructor destroy; override; |
|
Destroys the HTTP response instance |
procedure SendContent; |
|
Sends the response content to the client |
procedure SendHeaders; |
|
Sends the response headers to the client |
procedure SendResponse; |
|
Sends the complete HTTP response |
procedure StartServerEvents; virtual; |
|
Starts server-sent events mode |
procedure SendServerEvent(); virtual; |
|
Sends a server-sent event |
procedure EndServerEvents; virtual; |
|
Ends server-sent events mode |
procedure SendRedirect(); |
|
Sends a redirect response |
function ToString; override; |
|
Returns string representation of the response |
procedure SetStatus(); |
|
Sets the HTTP status code and text |
|
Associated HTTP request object |
|
|
HTTP response status code |
|
property CodeText: string; [rw] |
|
HTTP response status text |
property Age: string; [rw] |
|
Age header value indicating response age in seconds |
property Allow: string; [rw] |
|
Allow header value listing permitted HTTP methods |
property CacheControl: string; [rw] |
|
Cache-Control header value for caching directives |
property ContentLocation: string; [rw] |
|
Content-Location header value for alternate location |
property ContentMD5: string; [rw] |
|
Content-MD5 header value with MD5 digest of content |
property ContentRange: string; [rw] |
|
Content-Range header value for partial content |
property ETag: string; [rw] |
|
ETag header value for entity tag validation |
property ProxyAuthenticate: string; [rw] |
|
Proxy-Authenticate header value for proxy authentication |
property RetryAfter: string; [rw] |
|
Retry-After header value indicating when to retry request |
property FirstHeaderLine: string; [rw] |
|
First line of HTTP response headers |
property ContentStream: TStream; [rw] |
|
Stream containing response body content |
property Content: RawByteString; [rw] |
|
Response body content as string |
|
String list containing response content lines |
|
property HeadersSent: Boolean; [r] |
|
Indicates whether response headers have been sent |
property ContentSent: Boolean; [r] |
|
Indicates whether response content has been sent |
|
Collection of HTTP cookies to send with response |
|
property FreeContentStream: Boolean; [rw] |
|
Whether to automatically free the content stream |
end; |
|
HTTP response representation |
|
| | | ||
|
Base class for HTTP header management |
|
| | | ||
TResponse represents an HTTP response sent back to a client. It extends THTTPHeader and provides methods to set status codes, headers, content, cookies, and send the response data.
|
HTTP request representation |
|
|
Base class for HTTP header management |
|
|
Collection of HTTP cookies |