@mrazvan/lib-http
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

@mrazvan/lib-http

Library implementing a Runnable for HTTP servers. It is implemented to be used with lib-host. It is also using lib-intercept for handling routes, and lib-reflect for creating routes.

Short version: Allow implementing API's the way the project requires, meaning using any the framework for routing, any project structure, any coding practice. It provides reasonable defaults and a set of hook points to configure everything except the actual HTTP server.

Long version: TODO

Examples

Instalation

npm i @mrazvan/lib-http

Usage

const host = new Host() // lib-host host
host.addModule({
  init: (container: Container) {
    const srv1 = HTTPFactory.create(container);
    // const srv2 = HTTPFactory.create(container);
    // const srv3 = HTTPFactory.create(container);
    // .....
  }
})

TODO

README

Readme

Keywords

none

Package Sidebar

Install

npm i @mrazvan/lib-http

Weekly Downloads

0

Version

1.3.3

License

MIT

Unpacked Size

84.9 kB

Total Files

71

Last publish

Collaborators

  • mrazvan