The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE3:WebResponse (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 02:27, 26 July 2008 by Wormbo (Talk | contribs) (1 revision)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT3 Object >> WebResponse
Package: 
UWeb
This class in other games:
UT, UE2Runtime, U2, U2XMP, UT2003, UT2004, UDK

null

Properties[edit]

bSentResponse[edit]

Type: bool

Modifiers: protected


bSentText[edit]

Type: bool

Modifiers: protected

used to warn headers already sent

CharSet[edit]

Type: string

Modifiers: localized


Connection[edit]

Type: WebConnection


headers[edit]

Type: array<string>

headers send before the content

IncludePath[edit]

Type: string

Modifiers: const, config


Default value: "/Web"

ReplacementMap[edit]

Type: Object.Map_Mirror{TMultiMap<FString, FString>}

Modifiers: private, native, const

C++ placeholder.

Functions[edit]

Native functions[edit]

ClearSubst[edit]

native final function ClearSubst ()


Dump[edit]

native final function Dump ()


FileExists[edit]

native final function bool FileExists (string Filename)


GetHTTPExpiration[edit]

native final function string GetHTTPExpiration (optional int OffsetSeconds)


IncludeBinaryFile[edit]

native final function bool IncludeBinaryFile (string Filename)


IncludeUHTM[edit]

native final function bool IncludeUHTM (string Filename)


LoadParsedUHTM[edit]

native final function string LoadParsedUHTM (string Filename)


Subst[edit]

native final function Subst (string Variable, coerce string Value, optional bool bClear)


Events[edit]

SendBinary[edit]

event SendBinary (int Count, byte B[255])


SendText[edit]

event SendText (string Text, optional bool bNoCRLF)


Other instance functions[edit]

AddHeader[edit]

function AddHeader (string header, optional bool bReplace)

Add/update a header to the headers list. It will be send at the first possible occasion. To completely remove a given header simply give it an empty value, "X-Header:" To add multiple headers with the same name (need for Set-Cookie) you'll need to edit the headers array directly.

FailAuthentication[edit]

function FailAuthentication (string Realm)


HTTPError[edit]

function HTTPError (int ErrorNum, optional string Data)


HTTPHeader[edit]

function HTTPHeader (string Header)

Will actually send a header. You should not call this method, queue the headers through the AddHeader() method.

HTTPResponse[edit]

function HTTPResponse (string Header)

Send the HTTP response code.

Redirect[edit]

function Redirect (string URL)


SendCachedFile[edit]

function bool SendCachedFile (string Filename, optional string ContentType)


SendHeaders[edit]

function SendHeaders ()

Send the stored headers.

SendStandardHeaders[edit]

function SendStandardHeaders (optional string ContentType, optional bool bCache)

Send the standard response headers.

SentResponse[edit]

function bool SentResponse ()


SentText[edit]

function bool SentText ()