Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HttpServer

Index

Constructors

constructor

Properties

Private httpService

httpService: HttpService

Private logger

logger: Logger

Private server

server: Server

Methods

close

  • close(): Promise<void>

listen

  • listen(port: number, host: string): Promise<void>
  • Starts the server and begins listening on the provided port.

    Parameters

    • port: number
    • host: string

    Returns Promise<void>

Private processRequest

  • processRequest(req: IncomingMessage, res: ServerResponse): Promise<void>

Private reqToJson

  • reqToJson(req: IncomingMessage): Promise<object>

Private requestListener

  • requestListener(req: IncomingMessage, res: ServerResponse): Promise<void>

Generated using TypeDoc