We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using an instance created from phin.defaults(), any options passed will persist between successive calls.
phin.defaults()
For example:
const phinInstance = phin.defaults({ url: "https://httpbin.org/get" }); await phinInstance({ method: "GET", headers: { foo: "bar" } }); await phinInstance({ method: "GET" });
Expected result: the first HTTP request should be sent with header "foo": "bar", and the second one should not.
"foo": "bar"
Actual result: both HTTP requests are sent with header "foo": "bar".
The text was updated successfully, but these errors were encountered:
56449b0
No branches or pull requests
When using an instance created from
phin.defaults()
, any options passed will persist between successive calls.For example:
Expected result: the first HTTP request should be sent with header
"foo": "bar"
, and the second one should not.Actual result: both HTTP requests are sent with header
"foo": "bar"
.The text was updated successfully, but these errors were encountered: