@doodad-js/http
Version:
HTTP server (alpha)
58 lines (45 loc) • 2.14 kB
Markdown
HTTP server (alpha).
[![NPM Version][npm-image]][npm-url]
<<<< PLEASE UPGRADE TO THE LATEST VERSION AS OFTEN AS POSSIBLE >>>>
## Installation
```bash
$ npm install @doodad-js/http
```
## Features
- Request management.
- HTTP server.
- Page factory class.
- Page base class. Most known HTTP verbs are implemented as methods. Has the "OPTIONS" verb managed and can have custom verbs.
- Has some prebuilt page classes (NullPage, StatusPage, StaticPage, RedirectPage, ...).
- Request and routes mapping. Prebuilt is UrlMatcher.
- Prebuilt page factory with : routes filtering by verb, by file extension, by mime type, and by the "Accept" header.
- Statistics on requests.
## Example
Please install "@doodad-js/test" and browse its source code. Begin with file "./src/server/units/index.js".
## Other available packages
- **@doodad-js/core**: Object-oriented programming framework (release)
- **@doodad-js/cluster**: Cluster manager (alpha)
- **@doodad-js/dates**: Dates formatting (beta)
- **@doodad-js/http**: Http server (alpha)
- **@doodad-js/http_jsonrpc**: JSON-RPC over http server (alpha)
- **@doodad-js/io**: I/O module (alpha)
- **@doodad-js/ipc**: IPC/RPC server (alpha)
- **@doodad-js/json**: JSON parser (alpha)
- **@doodad-js/loader**: Scripts loader (beta)
- **@doodad-js/locale**: Locales (beta)
- **@doodad-js/make**: Make tools for doodad (alpha)
- **@doodad-js/mime**: Mime types (beta)
- **@doodad-js/minifiers**: Javascript minifier used by doodad (alpha)
- **@doodad-js/safeeval**: SafeEval (beta)
- **@doodad-js/server**: Servers base module (alpha)
- **@doodad-js/templates**: HTML page templates (alpha)
- **@doodad-js/terminal**: Terminal (alpha)
- **@doodad-js/test**: Test application
- **@doodad-js/unicode**: Unicode Tools (beta)
- **@doodad-js/widgets**: Widgets base module (alpha)
- **@doodad-js/xml**: XML Parser (beta)
## License
[Apache-2.0][license-url]
[npm-image]: https://img.shields.io/npm/v/@doodad-js/http.svg
[npm-url]: https://npmjs.org/package/@doodad-js/http
[license-url]: http://opensource.org/licenses/Apache-2.0