phin
phin copied to clipboard
Node HTTP client
How can we pass basic auth credentials as part of the request url? **Example:** https://admin:[email protected]/basic_auth ```js const p = require('phin'); await p({ url: 'https://admin:[email protected]/basic_auth', method: 'GET' }) ```
A potential security vulnerability has been disclosed for this repo https://huntr.dev/bounties/01d7ff2a-a699-44a8-8add-77c9eebaec87/ 3 months ago . But i see it still not addressed . Kindly validate the bug
I'm probably dense, but how do you nicely add query string parameters, e.g. to a GET request? Looking at centra there's a `.query` function on the request object but I...
Add a redirect limit by default when the user enables followRedirects, and allow followRedirects to be set to a number signifying the max number of redirects to follow. What would...
On line 27,28 2 errors: TS2304: Cannot find name 'IWithData'. TS2304: Cannot find name 'IWithForm'. Fixed with changing IWithData to phin.IWithData and IWithForm to phin.IWithForm
Really awesome tool- have started using it in a lot of my projects, so thanks for all the time and effort you've put into it 😊 I've done a brief...
I think it would be helpful for people who decided to use it on frontend or something else that includes browser... It happens if you use webpack5+ The solution is...
Related to #48 When a server responds with a status code of 5xx, the body should not be parsed as JSON. ```ts import * as p from 'phin'; const makeRequest()...