HttpApplication

HttpApplication

HttpApplication

Constructor

new HttpApplication()

Source:

Extends

  • EventEmitter

Members

(static) app.module :Object

Type:
Source:

config :ApplicationConfig

Type:
Source:

config :ApplicationConfig

Type:
Source:

config :ApplicationConfig

Gets or sets application configuration settings
Type:
Source:

config :ApplicationConfig

Type:
Source:

configPath :*

Gets the current application configuration path
Type:
  • *
Source:

development :string

Gets or sets a boolean that indicates whether the application is in development mode
Type:
  • string
Source:

errors :Object|*

Type:
Source:

handlers :Array

Gets or sets a collection of application handlers
Type:
  • Array
Source:

module :AngularServerModule

Type:
Source:

(inner) $cache :HttpCache

Type:
Source:

Methods

(static) app.document(sopt) → {HTMLDocument}

Parameters:
Name Type Attributes Description
s string <optional>
Source:
Returns:
Type
HTMLDocument

controller(name, ctor) → {*}

Get or sets an HTTP controller
Parameters:
Name Type Description
name string
ctor function | *
Source:
Returns:
Type
*

createContext(request, response) → {HttpContext}

Creates an instance of HttpContext class.
Parameters:
Name Type Description
request ClientRequest
response ServerResponse
Source:
Returns:
Type
HttpContext

db() → {AbstractAdapter}

Gets the default data context based on the current configuration
Source:
Returns:
Type
AbstractAdapter

decrypt()

Decrypts the given data.
Source:

directive(name, ctor) → {HttpApplication|function}

Parameters:
Name Type Description
name string
ctor function The class constructor associated with this controller
Source:
Returns:
Type
HttpApplication | function

encypt()

Encrypts the given data
Source:

execute(fn)

Executes an internal process
Parameters:
Name Type Description
fn function
Source:

executeExternalRequest(options, data, callback)

Parameters:
Name Type Description
options *
data *
callback function
Source:

executeRequest(options, callback)

Parameters:
Name Type Description
options * | string
callback function
Source:

extend()

Load application extension
Source:

getAuthCookie(context, username)

Sets the authentication cookie that is associated with the given user.
Parameters:
Name Type Description
context HttpContext
username String
Source:

init() → {HttpApplication}

Initializes application configuration.
Source:
Returns:
Type
HttpApplication

mapPath()

Returns the path of a physical file based on a given URL.
Source:

onError(context, err, callback)

Parameters:
Name Type Description
context HttpContext
err Error | HttpException
callback function
Source:

processRequest(context, callback)

Parameters:
Name Type Description
context HttpContext
callback function
Source:

resolveETag(fileopt, callback)

Resolves ETag header for the given file. If the specifed does not exist or is invalid returns null.
Parameters:
Name Type Attributes Description
file string <optional>
A string that represents the file we want to query
callback function
Source:

resolveMime(request)

Parameters:
Name Type Description
request String | IncomingMessage
Source:

service(name, ctoropt) → {HttpApplication|function}

Parameters:
Name Type Attributes Description
name string
ctor function <optional>
The class constructor associated with this controller
Source:
Returns:
Type
HttpApplication | function

setAuthCookie(context, username, optionsopt)

Sets the authentication cookie that is associated with the given user.
Parameters:
Name Type Attributes Description
context HttpContext
username String
options * <optional>
Source:

start(options)

Parameters:
Name Type Description
options ApplicationOptions | *
Source:

unattended(fn)

Executes an unattended internal process
Parameters:
Name Type Description
fn function
Source:

unmodifiedRequest(context, executionPath, callback)

Parameters:
Name Type Description
context HttpContext
executionPath string
callback function
Source: