Page Contents

Home > @loopback/rest > RequestContext > (constructor)

RequestContext.constructor

Constructs a new instance of the RequestContext class

Signature:

constructor(request: Request, response: Response, parent: Context, serverConfig: RestServerResolvedConfig, name?: string);

Parameters

Parameter Type Description
request Request  
response Response  
parent Context  
serverConfig RestServerResolvedConfig  
name string