1.3.2 • Published 6 years ago

http-typescript v1.3.2

Weekly downloads
16
License
SEE LICENSE IN CC...
Repository
gitlab
Last release
6 years ago

Simple framework to create HTTP modules (REST, WS or static files) in typescript

// Dependencies
import {GET, HttpServer, HttpContext} from "http-typescript";

// Exemple rest module
class RestModuleTest {
  @GET('/hello')
  private async getHello(ctx: HttpContext) : Promise<String> {
    return 'Hello !';
  }
}

// Instantiate server
new HttpServer()
  // To display log for debug
  .debug()  
  // Load test module
  .loadHttp(new RestModuleTest())
  // start server
  .listen(9495);

Installation avec npm

npm install --save http-typescript

Documentation

// Arrive bientôt

Journal des modifications

  • 2018-05-21 : 1.3.0
    • Désendettement de koa-websocket
    • Formalisation, complétude des tests unitaires
  • 2018-03-25 : 1.2.0
    • Ajout fonctionnalité fourniture de fichiers statiques
    • Migration vers koa-path-match pour la gestion des chemins
  • 2018-03-17 : 1.1.8 Amelioration gestion d'erreurs
  • 2018-03-12 : 1.1.1->1.1.7 Correctifs
  • 2018-03-11 : 1.1.0 Migration from Express to koa

Licence

CC BY 4.0 : https://creativecommons.org/licenses/by/4.0/

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago