# Change Log v0.2.2

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

## 0.2.2 (2018-07-10)

Note: Version bump only for package @loopback/http-server

## 0.2.1 (2018-06-28)

Note: Version bump only for package @loopback/http-server

# 0.2.0 (2018-06-27)

### Bug Fixes

- http-server: correctly format IPv6 host in url (c076eba)

### Features

- add `listening` property in the server interface (ff0eab7), closes #1368

## 0.1.5 (2018-06-26)

### Bug Fixes

- http-server: reset addressInfo when server is stopped (85fcbd4)

## 0.1.4 (2018-06-20)

### Bug Fixes

- http-server: simplify test-related scripts (6911e34)

## 0.1.3 (2018-06-11)

Note: Version bump only for package @loopback/http-server

## 0.1.2 (2018-06-09)

Note: Version bump only for package @loopback/http-server

## 0.1.1 (2018-06-09)

Note: Version bump only for package @loopback/http-server

# 0.1.0 (2018-06-08)

### Features

- add http-server package (bac8d8c)

# @loopback/http-server

This package implements the HTTP / HTTPS server endpoint for LoopBack 4 apps.

## Overview

This is an internal package used by LoopBack 4 for creating HTTP / HTTPS server.

## Installation

To use this package, you'll need to install `@loopback/http-server`.

    npm i @loopback/http-server

## Usage

`@loopback/http-server` should be instantiated with a request handler function, and an HTTP / HTTPS options object.

    const httpServer = new HttpServer(
      (req, res) => {
        res.end('Hello world');
      },
      {port: 3000, host: ''},
    );

Instance methods of `HttpServer`.

Method | Description
--- | ---
`start()` | Starts the server
`stop()` | Stops the server

Instance properties of `HttpServer`.

Property | Description
--- | ---
`address` | Address details
`host` | host of the server
`port` | port of the server
`protocol` | protocol of the server
`url` | url the server

## Contributions

- Guidelines
- Join the team

## Tests

Run `npm test` from the root folder.

## Contributors

See all contributors.

## License

MIT