powmedia / nodeunit-httpclient Goto Github PK
View Code? Open in Web Editor NEWHTTP response testing for NodeUnit
HTTP response testing for NodeUnit
Please add support for the PATCH verb which should be equal to POST or PUT.
I haven't found anyway to save cookies and send them back in subsequent requests. I'd love to be able to do this.
When a URL returns HTTP Status 204 (No Content) the httpclient.js breaks because it can't parse the non-existent Content-Type header. This needs fixing.
It would be good if one can test file uploads by simply specifying an object containing file paths to send as additional parts to the request.
I would suggest using https://github.com/mikeal/request rather than http
directly.
In your README, you imply that you store json data automatically in res.json:
//Test a response
exports.test2 = function(test) {
api.get(test, '/user', function(res) {
//JSON responses are automatically parsed:
test.equal(res.json, [{ name: 'Eric' }, { 'name': 'Kyle' }]);
test.done();
});
};
However, you store json data in res.data. Can you update the documentation to reflect this?
I can't seem to configure the client to be able to make requests to a server that requires HTTPS. Is that supported? If not, what might it take?
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.