Comments (4)
The Request.json() method is an optimized version of the uWebsockets.js implementation.
You can also consume the raw data using Request.on() since Request is a ReadableStream.
from hyper-express.
thanks for the reply.
actually with headers Transfer-Encoding : chunked, the Request.json(), Request.text(), Request.buffer() , Request.raw() returns null .
i end up using new Server().uws_instance.post() and then read the json data their.
from hyper-express.
Ohhh I see what you are talking about now. Yeah, currently hyper-express
looks for a content-length
to pre-allocate a body Buffer for performance reasons. I didn't know Transfer-Encoding chunked is supported now by uWS, should certainly be a feature worth adding to support in future.
from hyper-express.
Hey, support for chunked transfer requests has been added in the recent v6.15.2
versison.
from hyper-express.
Related Issues (20)
- Error: Cannot find module './uws_linux_x64_127.node' in Node 22 HOT 2
- piping crash in 6.16.1 HOT 3
- SSEventStream - EventSource's response has a MIME type ("text/plain") that is not "text/event-stream" HOT 2
- crashes when using it with pkg HOT 1
- can't serve port 80 hyper-express reverse proxy nginx HOT 1
- Error: HyperExpress: Server/Router.use() -> Wildcard "*" & ":parameter" prefixed paths are not allowed when binding middlewares or routers using this method. HOT 1
- Throwing error in Middleware causes app to crash HOT 6
- How to read base64 image from multipart HOT 1
- Specify QoS for MQTT syntax HOT 2
- Install hyper-express with PNPM behind a corporate firewall HOT 1
- middleware not executing after request is complete HOT 2
- Path parameter regexp HOT 5
- How to integrate with supertest HOT 1
- uWebSockets.js Adds Node.js 22 support HOT 4
- This version of ยตWS is not compatible with your Node.js build HOT 2
- Is it possible to use hyper-express with Bun? HOT 1
- Why duplicate routes are not allowed? HOT 2
- Router Spread Middleware Execution Order Inconsistency HOT 4
- Http version 1.0 not supported HOT 2
- Streaming big files causes random chunk duplication HOT 16
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 hyper-express.