Sign in Join
FPDoc Onlineexperiment

THTTPHeader class

In unit HTTPDefs

Base class for HTTP header management

Declaration

pascal
THTTPHeader = class(TObject)

Inheritance

  1. THTTPHeader
  2. TObject

Descends from it: TRequest TResponse

Description

THTTPHeader provides common functionality for handling HTTP headers, variables, and content. It serves as the base class for both TRequest and TResponse classes.

See also

Properties

FieldCountpublicNumber of header fields
FieldspublicHeader field name and value at the specified index
FieldNamespublicName of the header field at the specified index
FieldValuespublicValue of the header field at the specified index
AcceptpublicAccept header field value
AcceptCharsetpublicAccept-Charset header field value
AcceptEncodingpublicAccept-Encoding header field value
AcceptLanguagepublicAccept-Language header field value
AuthorizationpublicAuthorization header field value
ConnectionpublicConnection header field value
ContentEncodingpublicContent-Encoding header field value
ContentLanguagepublicContent-Language header field value
ContentLengthpublicContent-Length header field value
ContentTypepublicContent-Type header field value
DatepublicDate header field value
ExpirespublicExpires header field value
FrompublicFrom header field value
HostpublicHost header field value
IfModifiedSincepublicIf-Modified-Since header field value
LastModifiedpublicLast-Modified header field value
LocationpublicLocation header field value
PragmapublicPragma header field value
RefererpublicReferer header field value
RetryAfterpublicRetry-After header field value
ServerpublicServer header field value
UserAgentpublicUser-Agent header field value
WarningpublicWarning header field value
WWWAuthenticatepublicWWW-Authenticate header field value
ViapublicVia header field value
HTTPAcceptpublicHTTP Accept header accessor property
HTTPAcceptCharsetpublicHTTP Accept-Charset header accessor property
HTTPAcceptEncodingpublicHTTP Accept-Encoding header accessor property
HTTPIfModifiedSincepublicHTTP If-Modified-Since header accessor property
HTTPRefererpublicHTTP Referer header accessor property
HTTPUserAgentpublicHTTP User-Agent header accessor property
CookiepublicCookie header field value
SetCookiepublicSet-Cookie header field value
HTTPXRequestedWithpublicHTTP X-Requested-With header accessor property
HttpVersionpublicHTTP protocol version
ProtocolVersionpublicProtocol version string
PathInfopublicPATH_INFO environment variable value
PathTranslatedpublicPATH_TRANSLATED environment variable value
RemoteAddresspublicREMOTE_ADDR environment variable value
RemoteAddrpublicAlias for RemoteAddress property
RemoteHostpublicREMOTE_HOST environment variable value
ScriptNamepublicSCRIPT_NAME environment variable value
ServerPortpublicSERVER_PORT environment variable value
MethodpublicHTTP request method
URLpublicComplete request URL
QuerypublicQUERY_STRING environment variable value
ContentpublicRequest content as string
ContentBytespublicRequest content as byte array
CookieFieldspublicCollection of cookie name-value pairs
ContentFieldspublicCollection of content form fields
QueryFieldspublicCollection of query string name-value pairs
CustomHeaderspublicCollection of custom header fields

Methods

IndexToHTTPHeaderprotected
IndexToHTTPVariableprotected
GetFieldValueprotected
SetFieldValueprotected
ParseFirstHeaderLineprotected
ParseCookiesprotected
SetContentFromStringprotected
CreatepublicCreates an HTTP header instance
DestroypublicDestroys the HTTP header instance
HeaderIsSetpublicChecks if a specific header field is set
GetHeaderpublicGets the value of a specific header field
SetHeaderpublicSets the value of a specific header field
SetFieldByNamepublicSets a header field value by field name
GetFieldByNamepublicGets a header field value by field name
GetVariableHeaderNamepublicGets the header field name for an HTTP variable type
GetVariableHeaderTypepublicGets the HTTP variable type for a header field name
ParseContentTypepublicParses a content type header value
GetCustomHeaderpublicGets a custom header field value by name
SetCustomHeaderpublicSets a custom header field value by name
LoadFromStreampublicLoads HTTP headers from a stream
LoadFromStringspublicLoads HTTP headers from a string list

Inherited

From TObject (40)

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 ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.