---
lang: en
title: 'API docs: http-server.httpserver'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.http-server.httpserver.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/http-server](./http-server.md) &gt; [HttpServer](./http-server.httpserver.md)

## HttpServer class

HTTP / HTTPS server used by LoopBack's RestServer

<b>Signature:</b>

```typescript
export declare class HttpServer 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(requestListener, serverOptions)](./http-server.httpserver._constructor_.md) |  | Constructs a new instance of the <code>HttpServer</code> class |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [server](./http-server.httpserver.server.md) |  | <code>http.Server &#124; https.Server</code> |  |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [start()](./http-server.httpserver.start.md) |  | Starts the HTTP / HTTPS server |
|  [stop()](./http-server.httpserver.stop.md) |  | Stops the HTTP / HTTPS server |


