Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractHttpAdapter<TServer, TRequest, TResponse>

Type parameters

  • TServer

  • TRequest

  • TResponse

Hierarchy

  • AbstractHttpAdapter

Implements

  • any

Index

Constructors

constructor

Properties

Protected httpServer

httpServer: TServer

Protected instance

instance: any

Methods

Abstract close

  • close(): any

Abstract createMiddlewareFactory

  • createMiddlewareFactory(requestMethod: RequestMethod): function

delete

Abstract enableCors

get

getHttpServer

  • getHttpServer(): TServer

getInstance

  • getInstance<T>(): T

Abstract getRequestMethod

  • getRequestMethod(request: any): any

Abstract getRequestUrl

  • getRequestUrl(request: any): any

head

Abstract initHttpServer

listen

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

options

patch

post

put

Abstract registerParserMiddleware

  • registerParserMiddleware(): any

Abstract render

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

Abstract reply

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

Abstract setErrorHandler

  • setErrorHandler(handler: Function): any

Abstract setHeader

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

setHttpServer

  • setHttpServer(httpServer: TServer): void

Abstract setNotFoundHandler

  • setNotFoundHandler(handler: Function): any

Abstract setViewEngine

  • setViewEngine(engine: string): any

Abstract status

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

use

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

Abstract useStaticAssets

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

Generated using TypeDoc