Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractHttpAdapter<TServer, TRequest, TResponse>

publicapi
publicapi

Type parameters

  • TServer = any

  • TRequest = any

  • TResponse = any

Hierarchy

  • AbstractHttpAdapter

Implements

  • HttpServer<TRequest, TResponse>

Index

Constructors

constructor

  • Parameters

    • instance: any

    Returns AbstractHttpAdapter

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(): any
  • Returns any

getInstance

  • getInstance(): any
  • Returns any

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>
  • Returns Promise<void>

Abstract initHttpServer

  • initHttpServer(options: NestApplicationOptions): any

listen

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

    • port: any
    • hostname: any
    • callback: any

    Returns any

  • Parameters

    • port: string | number
    • Optional callback: () => void
        • (): void
        • Returns void

    Returns any

  • Parameters

    • port: string | number
    • hostname: string
    • Optional callback: () => void
        • (): void
        • Returns void

    Returns 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: any): void
  • Parameters

    • httpServer: any

    Returns 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
  • Parameters

    • Rest ...args: any[]

    Returns any

Abstract useStaticAssets

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

Generated using TypeDoc