---
lang: en
title: 'API docs: rest.restserver._oasenhancer'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.restserver._oasenhancer.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestServer](./rest.restserver.md) &gt; [\_OASEnhancer](./rest.restserver._oasenhancer.md)

## RestServer.\_OASEnhancer property

Handle incoming HTTP(S) request by invoking the corresponding Controller method via the configured Sequence.

<b>Signature:</b>

```typescript
protected _OASEnhancer: OASEnhancerService;
```

## Example


```ts
const app = new Application();
app.component(RestComponent);
// setup controllers, etc.

const restServer = await app.getServer(RestServer);
const httpServer = http.createServer(restServer.requestHandler);
httpServer.listen(3000);

```


