heapwolf / cxx-http Goto Github PK
View Code? Open in Web Editor NEWA simple http library in c++ backed by libuv and http-parser.
License: MIT License
A simple http library in c++ backed by libuv and http-parser.
License: MIT License
Major memory leak introduced at 3089394.
Should be moved into separate files probably.
Please add a license.
This could be a nice little libuv http server on its own, never mind the redirect stuff/leveldb.
prototyped everything in header file. LIKE A FUCKING BOZ.
Provide a way for users to add headers to a request.
I am super curious as to the details of why exactly the simple example in the README outperforms node.js. More than just the high level "it doesn't have to do as much".
I probably am not the only one that is wondering this after seeing the README at its current version.
So I was thinking that some short explanation could be added or linked to in the README for those that are curious.
I know that the performance section says Without any real statistical significance
but I'm not sure what to make of that. Is there a test we could run that we could stand by and say is "statistically significant"?
If an explanation isn't warranted on the README inline maybe we could add a wiki page and link to it on the README?
If anybody has any pointers or links that shed light on this I could take a crack at it but I don't have any experience with libuv.
It would be awesome if you could use a regular expression or a plain url and mount it with to a callback.
hs.Mount("/hello", [](Request &req, Response &req) {
res.setStatus(200);
res.setHeader("Content-Type", "text/plain");
res.setHeader("Connection", "keep-alive");
res << req.method << " " << req.url << endl;
});
Gyp files are a mess anyway.
Would be nice to use something from the clib
community for this.
Maintain a master event loop that handles inbound connections. Then dispatch the connection to a slave loop which does the actual work. I think you might be able to achieve much better concurrency this way instead of using libuv's threadpool implementation.
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.