Page Contents
Home > @loopback/http-server > HttpServer
HttpServer class
HTTP / HTTPS server used by LoopBack’s RestServer
Signature:
export declare class HttpServer
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
|
string | AddressInfo | undefined |
Address of the HTTP / HTTPS server | |
|
|
string | undefined |
Host of the HTTP / HTTPS server | |
|
|
boolean |
State of the HTTP / HTTPS server | |
|
|
number |
Port number of the HTTP / HTTPS server | |
|
|
Protocol of the HTTP / HTTPS server | ||
|
|
http.Server | https.Server | ||
|
| |||
|
|
string |
URL of the HTTP / HTTPS server |
Methods
| Method | Modifiers | Description |
|---|---|---|
|
Starts the HTTP / HTTPS server | ||
|
Stops the HTTP / HTTPS server |