## eshttp

[![Build Status](https://travis-ci.org/iefserge/eshttp.svg?branch=master)](https://travis-ci.org/iefserge/eshttp)

Portable pure JavaScript ES6 HTTP library.

Design goals:

- pure JavaScript (ES6)
- high-performance and low-level, no stream abstractions
- portable, multiple backends support (Node/other platforms)
- fetch API frontend support

work in progress...

## USAGE

Requires ES6 (io.js). Example web server using eshttp:

```js
'use strict';
let eshttp = require('eshttp');
let server = new eshttp.HttpServer();
let response = new eshttp.HttpResponse(200, { 'x-header': 'value' }, 'hello');

server.onrequest = function(request) {
  request.respondWith(response);
};

server.listen(8080);
```

## TODO

- handle invalid http requests
- keep alive support
- chunked responses
- http client and http response parser
- fetch api

##LICENSE

MIT

## eshttp

[![Build Status](https://travis-ci.org/iefserge/eshttp.svg?branch=master)](https://travis-ci.org/iefserge/eshttp)

Portable pure JavaScript ES6 HTTP library.

Design goals:

- pure JavaScript (ES6)
- high-performance and low-level, no stream abstractions
- portable, multiple backends support (Node/other platforms)
- fetch API frontend support

work in progress...

## USAGE

Requires ES6 (Node.js 4.0). Example web server using eshttp:

```js
'use strict';
let eshttp = require('eshttp');
let server = new eshttp.HttpServer();
let response = new eshttp.HttpResponse(200, { 'x-header': 'value' }, 'hello');

server.onrequest = function(request) {
  request.respondWith(response);
};

server.listen(8080);
```

## TODO

- handle invalid http requests
- keep alive support
- chunked responses
- http client and http response parser
- fetch api

##LICENSE

MIT

Add comment about the requirement of Node.js 4.0
Add comment about the requirement of Node.js 4.0
