Sign in Join
FPDoc Onlineexperiment

TRequest class

In unit HTTPDefs

HTTP request representation

Declaration

pascal
TRequest = class(THTTPHeader)

Inheritance

  1. TRequest
  2. THTTPHeader
  3. 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

ContentReadprotected
RequestIDpublicUnique request identifier
RouteParamspublicRoute parameter value by name
ReturnedPathInfopublicPath info that was returned from GetNextPathInfo
LocalPathPrefixpublicLocal path prefix for the request
CommandLinepublicHTTP command line from request
CommandpublicHTTP command (method and URI)
URIpublicURI of the HTTP request
QueryStringpublicQuery string portion of the request
HeaderLinepublicComplete header line from request
FilespublicCollection of uploaded files
HandleGetOnPostpublicWhether to handle GET parameters on POST requests
IfMatchpublicIf-Match header field value
IfNoneMatchpublicIf-None-Match header field value
IfRangepublicIf-Range header field value
IfUnModifiedSincepublicIf-Unmodified-Since header field value
ContentRangepublicContent-Range header field value
TEpublicTE (Transfer-Encoding) header field value
UpgradepublicUpgrade header field value
KeepFullContentspublicWhether to keep full request contents in memory

Methods

AllocateRequestIDprotected
AllowReadContentprotected
CreateUploadedFilesprotected
CreateMimeItemsprotected
HandleUnknownEncodingprotected
HandleStreamEncodingprotected
ParseFirstHeaderLineprotected
ReadContentprotected
ProcessMultiPartprotected
ProcessQueryStringprotected
ProcessURLEncodedprotected
RequestUploadDirprotected
GetTempUploadFileNameprotected
DeleteTempUploadedFilesprotected
InitRequestVarsprotected
InitContentRequestVarsprotected
InitHeaderRequestVarsprotected
InitPostVarsprotected
InitGetVarsprotected
InitContentprotected
ProcessStreamingContentprotected
DerriveStreamingContentTypeprotected
ProcessStreamingURLEncodedprotected
ProcessStreamingMultiPartprotected
ProcessStreamingSetContentprotected
HandleStreamingUnknownEncodingprotected
CreatepublicCreates a new request instance
destroypublicDestroys the HTTP request instance
GetNextPathInfopublicGets the next path info segment
ToStringpublicReturns string representation of the request

Events

OnUnknownEncodingpublicEvent handler for unknown content encoding
OnStreamEncodingEventpublicEvent handler for stream encoding processing

Fields

IDAllocatorpublicConnection ID allocator instance
MaxBodySizepublic
DefaultRequestUploadDirpublicDefault directory for uploaded files

Types and constants

TConnectionIDAllocatorpublicConnection 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.