secjs / http Goto Github PK
View Code? Open in Web Editor NEW๐ถ Simple http server for Node.js
License: MIT License
๐ถ Simple http server for Node.js
License: MIT License
This package is reinventing the wheel, it would be more interesting to implement a design pattern like Adapter, this way it would be possible to use any route framework (Express, Fastify, Koa, etc).
0.0.9
Change the actual context interface to SecContext
. This refactor will require to also implement the SecRequest
and SecResponse
contracts
Handlers -> Middlewares that are executed before the request gets in route handler
Terminators -> Middlewares that are executed after the response
Interceptors -> Middlewares that are executed before the response
1.0.3
At this point all handlers only got request and response.
This issue is intended to implement a context for handlers. So it will be an object that will have request and response inside.
SecJS
class does not have a way to implement middlewares
like a server.use(any)
method. What makes the package unfeasible for production.
When some error occurs in the request, the server does not respond the client
0.0.9
Update README with context improvement
Add setErrorHandler method to Http class to handle all application errors throwed by handlers
1.0.2
When mapping route in root path ('/')
, everything works, but when call this route, it keeps entering inside Not Found default route.
Probably a bug in RegExp
creation of the route.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.