Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

LibHTTP4.HttpCookies

Extends
Object
Modifiers
config parseconfig

HttpCookies
Cookie management system. Part of [[LibHTTP]].

Dcoumentation and Information: http://wiki.beyondunreal.com/wiki/LibHTTP

Authors: Michiel 'El Muerte' Hendriks <elmuerte@drunksnipers.com>

Copyright 2003, 2004 Michiel "El Muerte" Hendriks
Released under the Lesser Open Unreal Mod License
http://wiki.beyondunreal.com/wiki/LesserOpenUnrealModLicense

Core.Object
|   
+-- LibHTTP4.HttpCookies

Constants Summary
Inherited Contants from Core.Object
MaxInt, Pi, RF_NotForClient, RF_NotForEdit, RF_NotForServer, RF_Public, RF_Standalone, RF_Transactional, RF_Transient

Variables Summary
array<HTTPCookie>CookieData
intiVerbose
HttpUtilUtils
Inherited Variables from Core.Object
Class, Name, ObjectFlags, ObjectInternal[7], Outer

Enumerations Summary
Inherited Enumerations from Core.Object
EAxis, ECamOrientation, EDetailMode, EDrawPivot, ESheerAxis

Structures Summary
HTTPCookie
name, value, expires, domain, path
Inherited Structures from Core.Object
BoundingVolume, Box, Color, CompressedPosition, Coords, FloatBox, Guid, IntBox, InterpCurve, InterpCurvePoint, Matrix, Plane, Quat, Range, RangeVector, Rotator, Scale, TMultiMap, Vector

Functions Summary
function AddCookie (string cname, string value, int CurrentTimeStamp, optional int expires, optional string domain, optional string path))
event Created ()))
functionstring EscapeQuotes (string in))
functionstring GetCookie (string cname, string domain, string path, optional string defvalue))
functionstring GetCookieString (string Domain, string Path, int CurrentTimeStamp))
function Logf (coerce string message, optional int level, optional coerce string Param1, optional coerce string Param2))
functionbool ParseCookieData (string data, string rDomain, string rPath, optional int CurrentTimeStamp, optional bool bAdd, optional int TZoffset))
functionstring UnescapeQuotes (string in))
Inherited Functions from Core.Object
!, !=, $, $=, %, &, &&, *, **, *=, +, ++, +=, -, --, -=, / , /=, <, <<, <=, ==, >, >=, >>, >>>, @, @=, Abs, Acos, AllObjects, Asc, Asin, Atan, BeginState, Caps, Ceil, Chr, Clamp, ClassIsChildOf, ClearConfig, ClockwiseFrom, Cos, Created, Cross, Disable, Divide, Dot, DynamicLoadObject, EatStr, Enable, EndState, Eval, Exp, FClamp, FindObject, FMax, FMin, FRand, GetAxes, GetEnum, GetItemName, GetPerObjectNames, GetPropertyText, GetReferencers, GetStateName, GetUnAxes, GotoState, InStr, InterpCurveEval, InterpCurveGetInputDomain, InterpCurveGetOutputRange, Invert, IsA, IsInState, IsOnConsole, IsSoaking, Left, Len, Lerp, Localize, Locs, Log, Loge, Max, Mid, Min, MirrorVectorByNormal, Normal, Normalize, OrthoRotation, PlatformIs64Bit, PlatformIsMacOS, PlatformIsUnix, PlatformIsWindows, QuatFindBetween, QuatFromAxisAndAngle, QuatFromRotator, QuatInvert, QuatProduct, QuatRotateVector, QuatSlerp, QuatToRotator, Rand, RandRange, Repl, ReplaceText, ResetConfig, Right, RotRand, Round, SaveConfig, SetPropertyText, Sin, Smerp, Split, Sqrt, Square, StaticClearConfig, StaticSaveConfig, StopWatch, StrCmp, Tan, VRand, VSize, Warn, ^, ^^, |, ||, ~, ~=


Variables Detail

CookieData Source code

var config array<HTTPCookie> CookieData;
the cookie data

iVerbose Source code

var config int iVerbose;
log verbosity

Utils Source code

var protected HttpUtil Utils;
out utility belt


Structures Detail

HTTPCookie Source code

struct HTTPCookie
{
var string domain;
var int expires;
var string name;
var string path;
var string value;
};
cookie entry
domain:
available to domain
expires:
exprises timestamp
name:
the cookie name
path:
path in the domain
value:
the current value


Functions Detail

AddCookie Source code

function AddCookie ( string cname, string value, int CurrentTimeStamp, optional int expires, optional string domain, optional string path) )
Add or overwrite a new cookie If value is empty the cookie will be deleted If expires is in the past the cookie will be deleted

Created Source code

event Created ( ) )

EscapeQuotes Source code

static function string EscapeQuotes ( string in) )

GetCookie Source code

function string GetCookie ( string cname, string domain, string path, optional string defvalue) )
Return the value of a cookie

GetCookieString Source code

function string GetCookieString ( string Domain, string Path, int CurrentTimeStamp) )
Create a cookie string. TimeStamp should be the real current timestamp (not GMT corrected)

Logf Source code

protected function Logf ( coerce string message, optional int level, optional coerce string Param1, optional coerce string Param2) )

ParseCookieData Source code

function bool ParseCookieData ( string data, string rDomain, string rPath, optional int CurrentTimeStamp, optional bool bAdd, optional int TZoffset) )
Parse a string to a cookie rDomain and rPath are use to check if the cookie domain/path are valid CurrentTimeStamp is required for adding if bAdd is true add it to the list returns true when the string is a valid cookie

UnescapeQuotes Source code

static function string UnescapeQuotes ( string in) )


Defaultproperties

defaultproperties
{
    iVerbose=-1
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Do 14.8.2014 09:58:08.617 - Created with UnCodeX