Dynamic module restify

Index

Variables

Modules

Interfaces

Classes

Functions

Variables

CORS: CORS

(cors?: { origins?: string[]; credentials?: boolean; headers?: string[]; }): RequestHandler

Parameters

  • cors?: { origins?: string[]; credentials?: boolean; headers?: string[]; } optional

Returns

RequestHandler

public ALLOW_HEADERS: Array<string>

public credentials: boolean

public origins: Array<string>

defaultResponseHeaders: any

Functions

acceptParser(parser: any): RequestHandler

Parameters

  • parser: any

Returns

RequestHandler

auditLogger(options?: Object): Function

Parameters

  • options?: Object optional

Returns

Function

authorizationParser(): RequestHandler

Returns

RequestHandler

bodyParser(options?: Object): RequestHandler[]

Parameters

  • options?: Object optional

Returns

RequestHandler[]

conditionalRequest(): RequestHandler[]

Returns

RequestHandler[]

createClient(options?: ClientOptions): HttpClient

Parameters

Returns

HttpClient

createJsonClient(options?: ClientOptions): Client

Parameters

Returns

Client

createServer(options?: ServerOptions): Server

Parameters

Returns

Server

createStringClient(options?: ClientOptions): Client

Parameters

Returns

Client

dateParser(skew?: number): RequestHandler

Parameters

  • skew?: number optional

Returns

RequestHandler

fullResponse(): RequestHandler

Returns

RequestHandler

gzipResponse(options?: Object): RequestHandler

Parameters

  • options?: Object optional

Returns

RequestHandler

jsonp(): RequestHandler

Returns

RequestHandler

queryParser(options?: Object): RequestHandler

Parameters

  • options?: Object optional

Returns

RequestHandler

requestLogger(options?: Object): RequestHandler

Parameters

  • options?: Object optional

Returns

RequestHandler

serveStatic(options?: Object): RequestHandler

Parameters

  • options?: Object optional

Returns

RequestHandler

throttle(options?: ThrottleOptions): RequestHandler

Parameters

Returns

RequestHandler

urlEncodedBodyParser(options?: Object): RequestHandler[]

Parameters

  • options?: Object optional

Returns

RequestHandler[]