TRequest class
HTTP request representation
Declaration
TRequest = class(THTTPHeader)Inheritance
- TRequest
- THTTPHeader
- 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
Properties
ContentRead | protected | |
RequestID | public | Unique request identifier |
RouteParams | public | Route parameter value by name |
ReturnedPathInfo | public | Path info that was returned from GetNextPathInfo |
LocalPathPrefix | public | Local path prefix for the request |
CommandLine | public | HTTP command line from request |
Command | public | HTTP command (method and URI) |
URI | public | URI of the HTTP request |
QueryString | public | Query string portion of the request |
HeaderLine | public | Complete header line from request |
Files | public | Collection of uploaded files |
HandleGetOnPost | public | Whether to handle GET parameters on POST requests |
IfMatch | public | If-Match header field value |
IfNoneMatch | public | If-None-Match header field value |
IfRange | public | If-Range header field value |
IfUnModifiedSince | public | If-Unmodified-Since header field value |
ContentRange | public | Content-Range header field value |
TE | public | TE (Transfer-Encoding) header field value |
Upgrade | public | Upgrade header field value |
KeepFullContents | public | Whether to keep full request contents in memory |
Methods
AllocateRequestID | protected | |
AllowReadContent | protected | |
CreateUploadedFiles | protected | |
CreateMimeItems | protected | |
HandleUnknownEncoding | protected | |
HandleStreamEncoding | protected | |
ParseFirstHeaderLine | protected | |
ReadContent | protected | |
ProcessMultiPart | protected | |
ProcessQueryString | protected | |
ProcessURLEncoded | protected | |
RequestUploadDir | protected | |
GetTempUploadFileName | protected | |
DeleteTempUploadedFiles | protected | |
InitRequestVars | protected | |
InitContentRequestVars | protected | |
InitHeaderRequestVars | protected | |
InitPostVars | protected | |
InitGetVars | protected | |
InitContent | protected | |
ProcessStreamingContent | protected | |
DerriveStreamingContentType | protected | |
ProcessStreamingURLEncoded | protected | |
ProcessStreamingMultiPart | protected | |
ProcessStreamingSetContent | protected | |
HandleStreamingUnknownEncoding | protected | |
Create | public | Creates a new request instance |
destroy | public | Destroys the HTTP request instance |
GetNextPathInfo | public | Gets the next path info segment |
ToString | public | Returns string representation of the request |
Events
OnUnknownEncoding | public | Event handler for unknown content encoding |
OnStreamEncodingEvent | public | Event handler for stream encoding processing |
Fields
IDAllocator | public | Connection ID allocator instance |
MaxBodySize | public | |
DefaultRequestUploadDir | public | Default directory for uploaded files |
Types and constants
TConnectionIDAllocator | public | Connection ID allocator method type |
Inherited
From THTTPHeader (74)
Accept AcceptCharset AcceptEncoding AcceptLanguage Authorization Connection Content ContentBytes ContentEncoding ContentFields ContentLanguage ContentLength ContentType Cookie CookieFields CustomHeaders Date Expires FieldCount FieldNames Fields FieldValues From GetCustomHeader GetFieldByName GetFieldValue GetHeader GetVariableHeaderName GetVariableHeaderType HeaderIsSet Host HTTPAccept HTTPAcceptCharset HTTPAcceptEncoding HTTPIfModifiedSince HTTPReferer HTTPUserAgent HttpVersion HTTPXRequestedWith IfModifiedSince IndexToHTTPHeader IndexToHTTPVariable LastModified LoadFromStream LoadFromStrings Location Method ParseContentType ParseCookies PathInfo PathTranslated Pragma ProtocolVersion Query QueryFields Referer RemoteAddr RemoteAddress RemoteHost RetryAfter ScriptName Server ServerPort SetContentFromString SetCookie SetCustomHeader SetFieldByName SetFieldValue SetHeader URL UserAgent Via Warning WWWAuthenticate
From TObject (39)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
