fluture-js / fluture-node Goto Github PK
View Code? Open in Web Editor NEWFP-style HTTP and streaming utils for Node based on Fluture
License: MIT License
FP-style HTTP and streaming utils for Node based on Fluture
License: MIT License
โ request
inequivalent (/node_modules/fluture/test/assertions.js:55:18)
assertInnerEqual (/node_modules/fluture/test/assertions.js:47:15)
/node_modules/fluture/test/assertions.js:76:28
Computation$rej$cont (/node_modules/fluture/src/future.js:150:9)
Computation$rej (/node_modules/fluture/src/future.js:153:9)
/index.js:290:36
internal/util.js:392:14
finish (internal/streams/pipeline.js:174:7)
internal/streams/pipeline.js:180:7
internal/util.js:392:14
chain (body => {
const location = new URL (url);
const makeRequest = lib => Future ((rej, res) => {
const req = lib.request (location, options);
req.once ('response', res);
pipeline (body, req, e => e && rej (e));
return () => {
req.removeListener ('response', res);
req.abort ();
};
});
return chain (makeRequest) (getRequestModule (location.protocol));
}) (encase (buf => new Readable ({
highWaterMark: buf.byteLength,
read: function() {
if (this._pushed || this.push (buf)) { this.push (null); }
this._pushed = true;
},
})) ()) :: Future({ <rejected> new Error ("connect ECONNREFUSED 127.0.0.1:443") })
is not equivalent to:
reject (new Error ("connect ECONNREFUSED 127.0.0.1:443")) :: Future({ <rejected> new Error ("connect ECONNREFUSED 127.0.0.1:443") })
The inner values are not equal: Expected values to be strictly deep-equal:
+ actual - expected
[Error: connect ECONNREFUSED 127.0.0.1:443] {
address: '127.0.0.1',
code: 'ECONNREFUSED',
+ errno: -111,
- errno: 'ECONNREFUSED',
port: 443,
syscall: 'connect'
}
When the server redirects the agent, the Authorization
and Cookie
headers shouldn't be included in the followup request if the returned Location
is on a third-party domain. See also GHSA-74fj-2j2h-c42q.
tcp socket readable and writeable future-stream-futures that correctly communicate backpressure
http/2 use cases including exceedingly large get and post sizes and the effect on the rate of multiplexed small-sized get and post requests
might be useful to divide the domain into streams, network and protocol; possible that some namespaces could be aligned with nodejs api module names
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.