Middleware Namespace


Classes


AppMiddleware

constructor

With the help of this method you can create a new instance of AppMiddleware.

Signature

constructor(Object baseApp) : Object

Parameters

  • baseApp
    • Greppy base application instance
    • Type: Object

Returns

  • Object
    • Greppy base application instance

configure

Append the app middleware to the given application stack.

Signature

configure(Object app, Function callback) : void

Parameters

  • app
    • Application to configure
    • Type: Object
  • callback
    • Function to call on finish
    • Type: Function


DefaultMiddleware

constructor

With the help of this method you can create a new instance of DefaultMiddleware.

Signature

constructor(void) : Object|DefaultMiddleware

Returns

  • Object, DefaultMiddleware
    • A new instance of DefaultMiddleware

configure

Append the default middleware to the given application stack.

Signature

configure(Object app, Function callback) : void

Parameters

  • app
    • Application to configure
    • Type: Object
  • callback
    • Function to call on finish
    • Type: Function


RequestMiddleware

constructor

With the help of this method you can create a new instance of RequestMiddleware.

Signature

constructor(void) : Object|RequestMiddleware

Returns

  • Object, RequestMiddleware
    • A new instance of RequestMiddleware

configure

Append the request middleware to the given application stack.

Signature

configure(Object app, Function callback) : void

Parameters

  • app
    • Application to configure
    • Type: Object
  • callback
    • Function to call on finish
    • Type: Function


RouterMiddleware

constructor

With the help of this method you can create a new instance of RouterMiddleware.

Signature

constructor(void) : Object|RouterMiddleware

Returns

  • Object, RouterMiddleware
    • A new instance of RouterMiddleware

configure

Append the router middleware to the given application stack.

Signature

configure(Object app, Function callback) : void

Parameters

  • app
    • Application to configure
    • Type: Object
  • callback
    • Function to call on finish
    • Type: Function