Skip to main content

Connection

property Connection: string read;

Example

procedure ScriptEvent(var Value: variant);
begin
if Request <> nil then
Value := Request.Connection
else
Value := '';
end;

Usage

Returns the first raw Connection header selected by Velox, without controlling socket persistence or end-to-end behaviour.

Additional Technical Info

Connection returns the first Connection raw-header value selected case-insensitively by Indy. It is an unparsed string; duplicate fields are not combined by this getter.

Connection is hop-by-hop HTTP metadata. A proxy is expected to consume the nominated connection options before forwarding a message, so the value seen by Velox describes at most the immediately received hop. It is not an end-to-end client preference, caller identity, TLS-state indicator or durable record of how every intermediary handled the request.

Reading the property does not close, keep alive or otherwise control the socket. Connection persistence is managed by the HTTP server/Indy response path. Do not copy this value into forwarded requests or responses without standards-aware filtering, because nominated hop-by-hop field names must also be removed by intermediaries.

Treat the value as untrusted and possibly empty. Test Request for nil; use server/network configuration and trusted proxy data rather than this string for operational connection decisions.

External references

Created 2026-07-15