Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpServer

Hierarchy

  • HttpServer

Index

Constructors

constructor

  • Parameters

    Returns HttpServer

Properties

app

app: App

config

config: { anonymous-cookie-name: string; api-base: string; max-payload-bytes: number; port: number; session-cookie-name: string }

Type declaration

  • anonymous-cookie-name: string
  • api-base: string
  • max-payload-bytes: number
  • port: number
  • session-cookie-name: string

custom_raw_route

custom_raw_route: Function

name

name: "www-serer"

server

server: Hapi.Server

Methods

custom_route

  • custom_route(method: HttpMethod, path: string, handler: (app: App, context: Context, body: any) => Promise<any>): Promise<void>
  • Parameters

    • method: HttpMethod
    • path: string
    • handler: (app: App, context: Context, body: any) => Promise<any>
        • (app: App, context: Context, body: any): Promise<any>
        • Parameters

          Returns Promise<any>

    Returns Promise<void>

start

  • start(): Promise<void>
  • Returns Promise<void>

static_route

  • static_route(local_path: string, public_path: string): void
  • Parameters

    • local_path: string
    • public_path: string

    Returns void

stop

  • stop(): any
  • Returns any

Generated using TypeDoc