Classes
- AbstractMethodException
- FileNotFoundException
- HttpBadRequest
- HttpException
- HttpForbiddenException
- HttpMethodNotAllowed
- HttpNotFoundException
- HttpServerError
- HttpUnauthorizedException
Members
(static) getFunctionParams
- Source:
Methods
(static) convertFromBase26(s) → {number}
Converts a base-26 formatted string to the equivalent integer
Parameters:
Name |
Type |
Description |
s |
string
|
A base-26 formatted string e.g. aaaaaaaa for 0, baaaaaaa for 1 etc |
- Source:
Returns:
The equivalent integer value
-
Type
-
number
(static) convertToBase26(x) → {string}
Converts an integer to the equivalent base-26 formatted string
Parameters:
Name |
Type |
Description |
x |
number
|
The integer to be converted |
- Source:
Returns:
The equivalent string value
-
Type
-
string
(static) debug(data)
Parameters:
Name |
Type |
Description |
data |
Error
|
string
|
Object
|
*
|
|
- Source:
(static) httpError(err) → {HttpException}
Parameters:
Name |
Type |
Description |
err |
Error
|
*
|
|
- Source:
Returns:
-
Type
-
HttpException
(static) isEmptyString(s) → {boolean}
Checks if the specified string argument is empty, undefined or null.
Parameters:
Name |
Type |
Description |
s |
string
|
|
- Source:
Returns:
-
Type
-
boolean
(static) isFunction(fn) → {Boolean}
Parameters:
Name |
Type |
Description |
fn |
function
|
*
|
|
- Source:
Returns:
-
Type
-
Boolean
(static) isHttpException(obj) → {boolean}
Checks if the specified object is an HttpException instance or inherits HttpException class.
Parameters:
Name |
Type |
Description |
obj |
*
|
|
- Source:
Returns:
-
Type
-
boolean
(static) isNullOrUndefined(obj) → {boolean}
Checks if the specified object argument is undefined or null.
Parameters:
Name |
Type |
Description |
obj |
*
|
|
- Source:
Returns:
-
Type
-
boolean
(static) isNumber(n) → {boolean}
Checks if the specified object argument is numeric or not.
Parameters:
Name |
Type |
Description |
n |
*
|
|
- Source:
Returns:
-
Type
-
boolean
(static) isObject(obj) → {boolean}
Checks if the specified object argument is object.
Parameters:
Name |
Type |
Description |
obj |
*
|
|
- Source:
Returns:
-
Type
-
boolean
(static) isRelativeUrl(virtualPath) → {boolean}
Validates the given parameter and returns true if this represents a relative url. Otherwise returns false.
Parameters:
Name |
Type |
Description |
virtualPath |
string
|
|
- Source:
Returns:
-
Type
-
boolean
(static) log(data)
Parameters:
Name |
Type |
Description |
data |
Error
|
string
|
Object
|
*
|
|
- Source:
(static) newGuid()
Returns a random GUID/UUID string
- Source:
(static) parseBoolean(any) → {*}
Parses any value and returns the equivalent boolean.
Parameters:
Name |
Type |
Description |
any |
*
|
|
- Source:
Returns:
-
Type
-
*
(static) parseCookies(request) → {*}
Parameters:
Name |
Type |
Description |
request |
IncomingMessage
|
ClientRequest
|
|
- Source:
Returns:
-
Type
-
*
(static) parseFloat(any) → {*}
Parses any value and returns the equivalent float number.
Parameters:
Name |
Type |
Description |
any |
*
|
|
- Source:
Returns:
-
Type
-
*
Parameters:
Name |
Type |
Description |
form |
*
|
|
- Source:
Returns:
-
Type
-
*
(static) parseInt(any) → {*}
Parses any value and returns the equivalent integer.
Parameters:
Name |
Type |
Description |
any |
*
|
|
- Source:
Returns:
-
Type
-
*
(static) parseValue(any) → {*}
Parses any value or string and returns the resulted object.
Parameters:
Name |
Type |
Description |
any |
*
|
|
- Source:
Returns:
-
Type
-
*
(static) randomChars(length)
Returns a random string based on the length specified
Parameters:
Name |
Type |
Description |
length |
Number
|
|
- Source:
(static) randomHex(length)
Returns a random string based on the length specified
Parameters:
Name |
Type |
Description |
length |
number
|
|
- Source:
(static) randomInt(min, max)
Returns a random integer between a minimum and a maximum value
Parameters:
Name |
Type |
Description |
min |
number
|
|
max |
number
|
|
- Source: