Page Contents

Home > @loopback/rest > HttpHandler

HttpHandler class

Signature:

export declare class HttpHandler 

Constructors

Constructor Modifiers Description
(constructor)(_rootContext, _serverConfig, _routes)   Constructs a new instance of the HttpHandler class

Properties

Property Modifiers Type Description
_apiDefinitions   SchemasObject  
_rootContext   Context  
_routes   RoutingTable  
_serverConfig   RestServerResolvedConfig  
handleRequest   (request: Request, response: Response) => Promise<void>  

Methods

Method Modifiers Description
_handleRequest(request, response)    
describeApiPaths()    
findRoute(request)    
getApiDefinitions()    
registerApiDefinitions(defs)    
registerController(spec, controllerCtor, controllerFactory)    
registerRoute(route)