THTTPHeader class
Base class for HTTP header management
Declaration
THTTPHeader = class(TObject)Inheritance
- THTTPHeader
- 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
FieldCount | public | Number of header fields |
Fields | public | Header field name and value at the specified index |
FieldNames | public | Name of the header field at the specified index |
FieldValues | public | Value of the header field at the specified index |
Accept | public | Accept header field value |
AcceptCharset | public | Accept-Charset header field value |
AcceptEncoding | public | Accept-Encoding header field value |
AcceptLanguage | public | Accept-Language header field value |
Authorization | public | Authorization header field value |
Connection | public | Connection header field value |
ContentEncoding | public | Content-Encoding header field value |
ContentLanguage | public | Content-Language header field value |
ContentLength | public | Content-Length header field value |
ContentType | public | Content-Type header field value |
Date | public | Date header field value |
Expires | public | Expires header field value |
From | public | From header field value |
Host | public | Host header field value |
IfModifiedSince | public | If-Modified-Since header field value |
LastModified | public | Last-Modified header field value |
Location | public | Location header field value |
Pragma | public | Pragma header field value |
Referer | public | Referer header field value |
RetryAfter | public | Retry-After header field value |
Server | public | Server header field value |
UserAgent | public | User-Agent header field value |
Warning | public | Warning header field value |
WWWAuthenticate | public | WWW-Authenticate header field value |
Via | public | Via header field value |
HTTPAccept | public | HTTP Accept header accessor property |
HTTPAcceptCharset | public | HTTP Accept-Charset header accessor property |
HTTPAcceptEncoding | public | HTTP Accept-Encoding header accessor property |
HTTPIfModifiedSince | public | HTTP If-Modified-Since header accessor property |
HTTPReferer | public | HTTP Referer header accessor property |
HTTPUserAgent | public | HTTP User-Agent header accessor property |
Cookie | public | Cookie header field value |
SetCookie | public | Set-Cookie header field value |
HTTPXRequestedWith | public | HTTP X-Requested-With header accessor property |
HttpVersion | public | HTTP protocol version |
ProtocolVersion | public | Protocol version string |
PathInfo | public | PATH_INFO environment variable value |
PathTranslated | public | PATH_TRANSLATED environment variable value |
RemoteAddress | public | REMOTE_ADDR environment variable value |
RemoteAddr | public | Alias for RemoteAddress property |
RemoteHost | public | REMOTE_HOST environment variable value |
ScriptName | public | SCRIPT_NAME environment variable value |
ServerPort | public | SERVER_PORT environment variable value |
Method | public | HTTP request method |
URL | public | Complete request URL |
Query | public | QUERY_STRING environment variable value |
Content | public | Request content as string |
ContentBytes | public | Request content as byte array |
CookieFields | public | Collection of cookie name-value pairs |
ContentFields | public | Collection of content form fields |
QueryFields | public | Collection of query string name-value pairs |
CustomHeaders | public | Collection of custom header fields |
Methods
IndexToHTTPHeader | protected | |
IndexToHTTPVariable | protected | |
GetFieldValue | protected | |
SetFieldValue | protected | |
ParseFirstHeaderLine | protected | |
ParseCookies | protected | |
SetContentFromString | protected | |
Create | public | Creates an HTTP header instance |
Destroy | public | Destroys the HTTP header instance |
HeaderIsSet | public | Checks if a specific header field is set |
GetHeader | public | Gets the value of a specific header field |
SetHeader | public | Sets the value of a specific header field |
SetFieldByName | public | Sets a header field value by field name |
GetFieldByName | public | Gets a header field value by field name |
GetVariableHeaderName | public | Gets the header field name for an HTTP variable type |
GetVariableHeaderType | public | Gets the HTTP variable type for a header field name |
ParseContentType | public | Parses a content type header value |
GetCustomHeader | public | Gets a custom header field value by name |
SetCustomHeader | public | Sets a custom header field value by name |
LoadFromStream | public | Loads HTTP headers from a stream |
LoadFromStrings | public | Loads 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.
