http-typescript
v1.3.2
Published
Simple framework to create HTTP modules (REST, WS or static files) in typescript
Readme
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-typescriptDocumentation
// 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/
