Page Contents

Home > @loopback/rest > HttpHandler

HttpHandler class

Signature:

export declare class HttpHandler 

Constructors

Constructor Modifiers Description
[(constructor)(\_rootContext, \_serverConfig, \_routes)](/doc/en/lb4/apidocs.rest.httphandler._constructor_.html) Constructs a new instance of the `HttpHandler` class

Properties

Property Modifiers Type Description
[\_openApiComponents](/doc/en/lb4/apidocs.rest.httphandler._openapicomponents.html) `protected` ComponentsObject Shared OpenAPI spec objects as `components`
[\_rootContext](/doc/en/lb4/apidocs.rest.httphandler._rootcontext.html) `protected` `readonly` [Context](/doc/en/lb4/apidocs.context.context.html)
[\_routes](/doc/en/lb4/apidocs.rest.httphandler._routes.html) `protected` `readonly` [RoutingTable](/doc/en/lb4/apidocs.rest.routingtable.html)
[\_serverConfig](/doc/en/lb4/apidocs.rest.httphandler._serverconfig.html) `protected` `readonly` [RestServerResolvedConfig](/doc/en/lb4/apidocs.rest.restserverresolvedconfig.html)
[handleRequest](/doc/en/lb4/apidocs.rest.httphandler.handlerequest.html) (request: Request, response: Response) => Promise<void>

Methods

Method Modifiers Description
[\_handleRequest(request, response)](/doc/en/lb4/apidocs.rest.httphandler._handlerequest.html) `protected`
[describeApiPaths()](/doc/en/lb4/apidocs.rest.httphandler.describeapipaths.html)
[findRoute(request)](/doc/en/lb4/apidocs.rest.httphandler.findroute.html)
[getApiComponents()](/doc/en/lb4/apidocs.rest.httphandler.getapicomponents.html)
[getApiDefinitions()](/doc/en/lb4/apidocs.rest.httphandler.getapidefinitions.html)
[registerApiComponents(defs)](/doc/en/lb4/apidocs.rest.httphandler.registerapicomponents.html) Merge components into the OpenApi spec
[registerApiDefinitions(defs)](/doc/en/lb4/apidocs.rest.httphandler.registerapidefinitions.html)
[registerController(spec, controllerCtor, controllerFactory)](/doc/en/lb4/apidocs.rest.httphandler.registercontroller.html)
[registerRoute(route)](/doc/en/lb4/apidocs.rest.httphandler.registerroute.html)