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
_openApiComponents protected ComponentsObject Shared OpenAPI spec objects as components
_rootContext <p>protected</p><p>readonly</p> Context  
_routes <p>protected</p><p>readonly</p> RoutingTable  
_serverConfig <p>protected</p><p>readonly</p> RestServerResolvedConfig  
handleRequest   (request: Request, response: Response) => Promise<void>  

Methods

Method Modifiers Description
_handleRequest(request, response) protected  
describeApiPaths()    
findRoute(request)    
getApiComponents()    
getApiDefinitions()    
registerApiComponents(defs)   Merge components into the OpenApi spec
registerApiDefinitions(defs)    
registerController(spec, controllerCtor, controllerFactory)    
registerRoute(route)