Methods
RequestSessionDecorator(request, response, server, callback)
Parameters:
Name | Type | Description |
---|---|---|
request |
SGAppsServerRequest | |
response |
SGAppsServerResponse | |
server |
SGAppsServer | |
callback |
function |
routeMatch(route, url, strictRouting, _cache)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
route |
RequestPathStructure | |
url |
string | |
strictRouting |
boolean | |
_cache |
object |
Type Definitions
LoggerBuilderPrompt(message)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
message |
Buffer |
MountUpdatedURL
Type:
- string
RequestHandler(request, response, next)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
request |
SGAppsServerRequest | |
response |
SGAppsServerResponse | |
next |
function |
RequestPathStructure
- Source:
Type:
- string | RegExp
RequestPathStructureMap
- Source:
Properties:
Name | Type | Description |
---|---|---|
key |
string | |
path |
RequestPathStructure | |
handlers |
Array.<RequestHandler> |
Type:
- object
ResourcesExtensions
- Source:
Properties:
Name | Type | Description |
---|---|---|
mime |
function | |
LIST_ASSOC |
Object.<string, string> |
Type:
- object
SGAppsServerDecorator(request, response, server, callback)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
request |
SGAppsServerRequest | |
response |
SGAppsServerResponse | |
server |
SGAppsServer | |
callback |
function |
SGAppsServerDictionaryRunCallBack(request, response, server)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
request |
SGAppsServerRequest | |
response |
SGAppsServerResponse | |
server |
SGAppsServer |
SGAppsServerErrorCallBack(err, request, response, server)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
err |
Error | |
request |
SGAppsServerRequest | |
response |
SGAppsServerResponse | |
server |
SGAppsServer |
SGAppsServerErrorOnlyCallback(err)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
err |
Error |
SGAppsServerHandlerPostData(request, response, next)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
request |
SGAppsServerRequest | |
response |
SGAppsServerResponse | |
next |
function |
SGAppsServerOptions
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
server |
Server |
<optional> |
||
strictRouting |
boolean |
<optional> |
false
|
|
_DEBUG_MAX_HANDLER_EXECUTION_TIME |
number |
<optional> |
500
|
|
_DEBUG_REQUEST_HANDLERS_STATS |
boolean |
<optional> |
false
|
|
_REQUEST_FORM_PARAMS_DEEP_PARSE |
boolean |
<optional> |
true
|
parse formData field names to create deep object request.body |
Type:
- object
SGAppsServerRequestFile
Properties:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fieldName |
string | field's name |
||||||||||||||||||||||||
data |
object |
Properties
|
Type:
- object
SGAppsServerRequestPostDataItem
Properties:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fieldName |
string | field's name |
||||||||||||||||||
data |
object |
Properties
|
Type:
- object
SGAppsServerRequestSessionCache
Properties:
Name | Type | Description |
---|---|---|
expire |
number | |
data |
object |
Type:
- object
SGAppsSessionManagerOptions
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
SESSION_LIFE |
number |
<optional> |
600
|
|
cookie |
string |
<optional> |
'ssiddyn'
|
Type:
- object
TemplateManagerRenderOptions
Type:
- object
TemplateManagerTemplate
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | ||
path |
string | ||
code |
string |
<optional> |
Type:
- object