Class Server

Hierarchy

Index

Properties

Methods

Properties

public acceptable: Array<string>

public address: () => "restify".addressInterface

public log: Object

public maxHeadersCount: number

public name: string

public url: string

public version: string

Methods

public addListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public close(args?: Array<any>): any

Parameters

  • args?: Array<any> optional

Returns

any

public del(route: any, routeCallBack: RequestHandler, routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public del(route: any, routeCallBack: RequestHandler[], routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public del(route: any, routeCallBack: RequestHandler, routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public del(route: any, routeCallBack: RequestHandler[], routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler[]
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public emit(event: string, args?: Array<any>): boolean

Parameters

  • event: string
  • args?: Array<any> optional

Returns

boolean

public get(route: any, routeCallBack: RequestHandler, routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public get(route: any, routeCallBack: RequestHandler[], routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public get(route: any, routeCallBack: RequestHandler, routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public get(route: any, routeCallBack: RequestHandler[], routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler[]
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public head(route: any, routeCallBack: RequestHandler, routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public head(route: any, routeCallBack: RequestHandler[], routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public head(route: any, routeCallBack: RequestHandler, routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public head(route: any, routeCallBack: RequestHandler[], routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler[]
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public listen(args?: Array<any>): any

Parameters

  • args?: Array<any> optional

Returns

any

public listeners(event: string): Array<Function>

Parameters

  • event: string

Returns

Array<Function>

public on(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public once(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public patch(route: any, routeCallBack: RequestHandler, routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public patch(route: any, routeCallBack: RequestHandler[], routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public patch(route: any, routeCallBack: RequestHandler, routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public patch(route: any, routeCallBack: RequestHandler[], routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler[]
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public post(route: any, routeCallBack: RequestHandler, routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public post(route: any, routeCallBack: RequestHandler[], routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public post(route: any, routeCallBack: RequestHandler, routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public post(route: any, routeCallBack: RequestHandler[], routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler[]
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public pre(routeCallBack: RequestHandler): any

Parameters

Returns

any

public put(route: any, routeCallBack: RequestHandler, routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public put(route: any, routeCallBack: RequestHandler[], routeCallBacks?: RequestHandler[]): any

Parameters

Returns

any

public put(route: any, routeCallBack: RequestHandler, routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public put(route: any, routeCallBack: RequestHandler[], routeCallBacks?: Array<"restify".RequestHandler[]>): any

Parameters

  • route: any
  • routeCallBack: RequestHandler[]
  • routeCallBacks?: Array<"restify".RequestHandler[]> optional

Returns

any

public removeAllListeners(event?: string): EventEmitter

Parameters

  • event?: string optional

Returns

EventEmitter

public removeListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public setMaxListeners(n: number)

Parameters

  • n: number

public use(handler: RequestHandler, handlers?: RequestHandler[]): any

Parameters

Returns

any

public use(handler: RequestHandler[], handlers?: RequestHandler[]): any

Parameters

Returns

any

public use(handler: RequestHandler, handlers?: Array<"restify".RequestHandler[]>): any

Parameters

  • handler: RequestHandler
  • handlers?: Array<"restify".RequestHandler[]> optional

Returns

any

public use(handler: RequestHandler[], handlers?: Array<"restify".RequestHandler[]>): any

Parameters

  • handler: RequestHandler[]
  • handlers?: Array<"restify".RequestHandler[]> optional

Returns

any