Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNew issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Wrap setYield#165
Wrap setYield#165
Comments
No description provided. |
dalisoft commentedDec 21, 2019
I checked this method because i did think doeslike this, but not work like that. The code i'm tested: const{ App}=require("uWebSockets.js");constapp=App();app.any("/*",(res,req)=>{console.log("req #1",req);// <-- this works like beforereq.foo=true;req.setYield(true);}).get("/get/*",(res,req)=>{console.log("req #2",req);// <-- excepted req.foo = truereq.bar=true;req.setYield(true);}).get("/get/user",(res,req)=>{console.log("req #3",req);// <-- excepted req.foo = true and req.bar = true, but these does not existres.end("done :)");});app.listen(4000,token=>token&&console.log("listens at 4000")); Try go to |