Comments (3)
It's a common question. It's a naming thing, if you think HttpSocket and HttpHead it makes sense. But for being as compatible with Node.js naming as possible, it was named HttpResponse/HttpRequest even if their responsibilities mismatch a bit.
from uwebsockets.js.
HttpRequest/HttpHead is even better naming because the socket is shared between many requests, but that would confuse Node.js people even more
from uwebsockets.js.
Thanks for the explanation @uNetworkingAB .
Yes that makes much more sense if the first parameter of the handler represents the network socket and the second is the head of the Http Request.
I guess there is no easy equivalent naming given most JS libraries and Node itself uses the Request/Response convention
π
from uwebsockets.js.
Related Issues (20)
- How to reduce real-time audio and video stream forwarding delayοΌ HOT 4
- Windows binaries don't build
- WriteStatus function
- req.getQuery() is returning undefiend insteated of empty string HOT 2
- HttpRequest that survives past async functions HOT 20
- Auto compression for HTTP and use zstd HOT 2
- NODE_MODULE_VERSION 93 in:uNetworking/uWebSockets.js HOT 5
- uWebSockets.js can't be installed using npm install uNetworking/uWebSockets.js#v20.43.0 HOT 1
- U can setup base middleware system smth like this: HOT 1
- listen_unix no working
- node 22 HOT 17
- wrapper.apply error HOT 1
- uWebsockets.js server much slower if host wasn't passed to listen HOT 1
- Aborted called on a running task HOT 2
- TLS peer certificate HOT 4
- 404 File Not Found uWebSockets/20 Server on PATCH HOT 3
- wrap getParamter(name)
- Bug Report: Server Unresponsive During Large File Uploads HOT 8
- Receving 1006 CLOSE_ABNORMAL on random basis HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uwebsockets.js.