Client request parameters. Used in both slave server <-> cache server and game client <-> slave server communication.
inline get (key:String):Dynamic
Returns a request parameter without any additional checks. Avoid using if possible.
Parameters:
key
Parameter name.
Returns:
Parameter value. Returns null if value does not exist.
Returns a request parameter. Will try to cast the value to Bool
.
Parameters:
key
Parameter name.
Returns:
Parameter value. Returns false if value does not exist.
Returns a request parameter.
Will try to cast the value to Float
.
Parameters:
key
Parameter name.
Returns:
Parameter value. Returns 0.0 if value does not exist.
getFloatParse (key:String):Float
Returns a request parameter.
Will try to convert the value to Float
with Std.parseFloat()
.
Parameters:
key
Parameter name.
Returns:
Parameter value. Returns 0.0 if value does not exist.
Returns a request parameter.
Will try to convert the value to Int
with Std.parseInt()
.
Parameters:
key
Parameter name.
Returns:
Parameter value. Returns 0 if value does not exist.
Returns a request parameter. Will try to cast the value to String
.
Parameters:
key
Parameter name.
Returns:
Parameter value. Returns null if value does not exist.