Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExpressAdapter

Hierarchy

Index

Constructors

constructor

Properties

Private routerMethodFactory

routerMethodFactory: any = new RouterMethodFactory()

Methods

close

  • close(): any

createMiddlewareFactory

  • createMiddlewareFactory(requestMethod: RequestMethod): function

disable

  • disable(...args: any[]): any

enable

  • enable(...args: any[]): any

enableCors

engine

  • engine(...args: any[]): any

getRequestMethod

  • getRequestMethod(request: any): string

getRequestUrl

  • getRequestUrl(request: any): string

initHttpServer

Private isMiddlewareApplied

  • isMiddlewareApplied(name: string): boolean

listen

  • listen(port: string | number, callback?: function): any
  • listen(port: string | number, hostname: string, callback?: function): any

registerParserMiddleware

  • registerParserMiddleware(): void

render

  • render(response: any, view: string, options: any): any

reply

  • reply(response: any, body: any, statusCode?: number): any

set

  • set(...args: any[]): any

setBaseViewsDir

  • setBaseViewsDir(path: string | string[]): any

setErrorHandler

  • setErrorHandler(handler: Function): any

setHeader

  • setHeader(response: any, name: string, value: string): any

setNotFoundHandler

  • setNotFoundHandler(handler: Function): any

setViewEngine

  • setViewEngine(engine: string): any

status

  • status(response: any, statusCode: number): any

useStaticAssets

Generated using TypeDoc