Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractHttpAdapter<TServer, TRequest, TResponse>

publicapi

Type parameters

  • TServer = any

  • TRequest = any

  • TResponse = any

Hierarchy

Implements

  • HttpServer<TRequest, TResponse>

Index

Constructors

constructor

Properties

Protected httpServer

httpServer: TServer

Protected Readonly instance

instance: any

Methods

Abstract close

  • close(): any

Abstract createMiddlewareFactory

  • createMiddlewareFactory(requestMethod: RequestMethod): ((path: string, callback: Function) => any) | Promise<(path: string, callback: Function) => any>

delete

Abstract enableCors

  • enableCors(options: CorsOptions, prefix?: string): any

get

getHttpServer

  • getHttpServer(): TServer

getInstance

  • getInstance<T>(): T

Abstract getRequestHostname

  • getRequestHostname(request: any): any

Abstract getRequestMethod

  • getRequestMethod(request: any): any

Abstract getRequestUrl

  • getRequestUrl(request: any): any

Abstract getType

  • getType(): string

head

init

  • init(): Promise<void>

Abstract initHttpServer

  • initHttpServer(options: NestApplicationOptions): any

listen

  • listen(port: string | number, callback?: () => void): any
  • listen(port: string | number, hostname: string, callback?: () => void): any

options

patch

post

put

Abstract redirect

  • redirect(response: any, statusCode: number, url: string): any

Abstract registerParserMiddleware

  • registerParserMiddleware(prefix?: string): 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, prefix?: string): any

Abstract setHeader

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

setHttpServer

  • setHttpServer(httpServer: TServer): void

Abstract setNotFoundHandler

  • setNotFoundHandler(handler: Function, prefix?: string): 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