Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TRequest

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

HTTP request representation

Declaration

Source position: httpdefs.pp line 472

type TRequest = class(THTTPHeader)

public

type

  TConnectionIDAllocator = procedure(

  

Connection ID allocator method type

  out aID: string

) of object;

public

  IDAllocator: TConnectionIDAllocator;

  

Connection ID allocator instance

  DefaultRequestUploadDir: string;

  

Default directory for uploaded files

  constructor Create; override;

  

Creates a new request instance

  destructor destroy; override;

  

Destroys the HTTP request instance

  function GetNextPathInfo;

  

Gets the next path info segment

  function ToString; override;

  

Returns string representation of the request

  property RequestID: string; [r]

  

Unique request identifier

  property RouteParams []: string; [rw]

  

Route parameter value by name

  property ReturnedPathInfo: string; [rw]

  

Path info that was returned from GetNextPathInfo

  property LocalPathPrefix: string; [r]

  

Local path prefix for the request

  property CommandLine: string; [r]

  

HTTP command line from request

  property Command: string; [r]

  

HTTP command (method and URI)

  property URI: string; [rw]

  

URI of the HTTP request

  property QueryString: string; [rw]

  

Query string portion of the request

  property HeaderLine: string; [r]

  

Complete header line from request

  property Files: TUploadedFiles; [r]

  

Collection of uploaded files

  property HandleGetOnPost: Boolean; [rw]

  

Whether to handle GET parameters on POST requests

  property OnUnknownEncoding: TOnUnknownEncodingEvent; [rw]

  

Event handler for unknown content encoding

  property OnStreamEncodingEvent: TOnStreamEncodingEvent; [rw]

  

Event handler for stream encoding processing

  property IfMatch: string; [rw]

  

If-Match header field value

  property IfNoneMatch: string; [rw]

  

If-None-Match header field value

  property IfRange: string; [rw]

  

If-Range header field value

  property IfUnModifiedSince: string; [rw]

  

If-Unmodified-Since header field value

  property ContentRange: string; [rw]

  

Content-Range header field value

  property TE: string; [rw]

  

TE (Transfer-Encoding) header field value

  property Upgrade: string; [rw]

  

Upgrade header field value

  property KeepFullContents: Boolean; [rw]

  

Whether to keep full request contents in memory

end;

Arguments

aID

  

Connection ID parameter

Inheritance

TRequest

  

HTTP request representation

|

THTTPHeader

  

Base class for HTTP header management

|

TObject

Description

TRequest represents an HTTP request received by a web server. It extends THTTPHeader and provides access to request data including headers, query parameters, form data, uploaded files, and other request information.

See also

TResponse

  

HTTP response representation

THTTPHeader

  

Base class for HTTP header management

TUploadedFiles

  

Collection of uploaded files


Documentation generated on: Jan 16 2026