chai-http
chai-http copied to clipboard
HTTP Response assertions for the Chai Assertion Library.
**TL;DR** if you chai-request is inconsistent and sometimes responds with 404 add `--retries 1` to your mocha.opts it seems there a race-condition of some sort where the http server is...
need help please!! i'm try to run this test but the res is always undifined , its weird because when i try it from postman its work fine the test:...
I saw that when using `chai.request.agent(app)` there is a possibility to reuse the cookie across all the requests. If my API needs header authentication, is it possible to append a...
Please refer to the README and comments in the pull request for greater details. Basically, this is adding the possibility to pass an object as the third argument to `.cookie(...)`...
Firstly, no shade toward superagent. It's an excellent library and the maintainers should be proud of the product they've made. But I think it could be useful to explore dropping...
Could you manage ca, cert and key "field" from superagent to enable the mutual ssl authentication. In the actual version (4.3.0) these fields are available, but seems not to be...
In some cases, a server will return `result.body` as a `null` value, in other cases it will return an empty response. Practically, the difference often doesn't matter. It would be...
I'm trying to ask in this way: ```js request.post('/properUrl') .set('Content-Type', 'multipart/form-data') .set('Accept', 'application/json') .attach('file', './files/test.pdf', 'test.pdf') .type('formData') .then((response) => { expect(response).to.have.status(200); }) ``` I tried also with sending type of...
I noticed this project is making use of Superagent version 3.7, which doesn't have support for http2. Is there any plan to move on to the newest version of Superagent?...
Hi, I am experiencing the following deprecation warning: `DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated` on chai-http requests. After a quick investigation that is an issue that was resolved in the latest...