jednano / iso-http Goto Github PK
View Code? Open in Web Editor NEWAn HTTP request library that enables isomorphic applications.
License: MIT License
An HTTP request library that enables isomorphic applications.
License: MIT License
I'm using an API which specifies filters by passing the same URL parameter twice.
From reading the code, I'd need to provide an alternative implementation of serializeObject
that could do this.
Would a PR to make hooking that possible be accepted?
Could you please add the browserify property to package.json to make it compatible to load with browserify?
When using browserify, one shouldn't have to do anything special to use the component in the browser other than install with npm.
To make this package compatible with browserify, I believe that you would simply add a browserify
option to your package.json, specifying what to load for the browser (if it is different than for the server).
Since the current package.json only specifies main
which is pointing to the node.js version, browserify tries to load that in the browser and it fails when making a request. Once you add the browserify property to package.json, you can have it load the appropriate browser version instead.
https://github.com/substack/node-browserify#packagejson
Thanks.
The x-requested-with
header set in https://github.com/jedmao/iso-http/blob/master/lib/browser/Http.ts#L18 causes firefox to perform a CORS request where it otherwise wouldn't need to.
This adds ~100ms to XHR requests for mobile users. Does it make sense for clients that want this behavior to specify it themselves rather than baking it into the library?
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.