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

UE3:WebResponse (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> WebResponse
Package: 
IpDrv
This class in other games:
UT, UE2Runtime, U2, U2XMP, UT2003, UT2004, UT3

null

Properties

bSentResponse

Type: bool

Modifiers: protected


bSentText

Type: bool

Modifiers: protected

used to warn headers already sent

CharSet

Type: string

Modifiers: localized


Connection

Type: WebConnection


headers

Type: array<string>

headers send before the content

IncludePath

Type: string

Modifiers: const, config


ReplacementMap

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

Modifiers: private, native, const

C++ placeholder.

Functions

Native functions

ClearSubst

native final function ClearSubst ()


Dump

native final function Dump ()


FileExists

native final function bool FileExists (string Filename)


GetHTTPExpiration

native final function string GetHTTPExpiration (optional int OffsetSeconds)


IncludeBinaryFile

native final function bool IncludeBinaryFile (string Filename)


IncludeUHTM

native final function bool IncludeUHTM (string Filename)


LoadParsedUHTM

native final function string LoadParsedUHTM (string Filename)


Subst

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


Events

SendBinary

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


SendText

event SendText (string Text, optional bool bNoCRLF)


Other instance functions

AddHeader

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

function FailAuthentication (string Realm)


HTTPError

function HTTPError (int ErrorNum, optional string Data)


HTTPHeader

function HTTPHeader (string Header)

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

HTTPResponse

function HTTPResponse (string Header)

Send the HTTP response code.

Redirect

function Redirect (string URL)


SendCachedFile

function bool SendCachedFile (string Filename, optional string ContentType)


SendHeaders

function SendHeaders ()

Send the stored headers.

SendStandardHeaders

function SendStandardHeaders (optional string ContentType, optional bool bCache)

Send the standard response headers.

SentResponse

function bool SentResponse ()


SentText

function bool SentText ()