Skip to content

WebResponse

Class in IpDrv · IpDrv.WebResponse · native, config

Object › WebResponse

Using it from Lua
h7.find_all("WebResponse")            -- live instances
h7.find_class("IpDrv.WebResponse")   -- the class
h7.hook("IpDrv.WebResponse.AddHeader", fn)

Properties

NameTypeNotes
bSentResponseboolprotected
bSentTextboolprotected
CharSetstringlocalized
ConnectionWebConnection
Headersarrayno declaration: type is approximate
IncludePathstringconst, config
ReplacementMapMap_Mirrorconst, native, private

Functions

NameDeclaration
AddHeaderfunction AddHeader(string header, optional bool bReplace = true)
ClearSubstfinal native function ClearSubst()
Dumpfinal native function Dump()
FailAuthenticationfunction FailAuthentication(string Realm)
FileExistsfinal native function bool FileExists(string Filename)
GetHTTPExpirationfinal native function string GetHTTPExpiration(optional int OffsetSeconds)
HTTPErrorfunction HTTPError(int ErrorNum, optional string Data)
HTTPHeaderfunction HTTPHeader(string Header)
HttpResponsefunction HttpResponse(string Header) (no declaration: types are approximate)
IncludeBinaryFilefinal native function bool IncludeBinaryFile(string Filename)
IncludeUHTMfinal native function bool IncludeUHTM(string Filename)
LoadParsedUHTMfinal native function string LoadParsedUHTM(string Filename)
Redirectfunction Redirect(string URL)
SendBinaryevent SendBinary(int Count, byte B[255])
SendCachedFilefunction bool SendCachedFile(string Filename, optional string ContentType)
SendHeadersfunction SendHeaders()
SendStandardHeadersfunction SendStandardHeaders(optional string ContentType, optional bool bCache)
SendTextevent SendText(string Text, optional bool bNoCRLF)
SentResponsefunction bool SentResponse()
SentTextfunction bool SentText()
Substfinal native function Subst(string Variable, coerce string Value, optional bool bClear)

Inherited

FromMembers
Object13 properties, 308 functions