Skip to content
New issue

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

allow custom axios instance #34

Merged
merged 2 commits into from
Apr 1, 2023

Conversation

BilligsterUser
Copy link
Contributor

This would allow users to do things like

import { setupAxios } from './axios';

setupAxios({ timeout: 1000 })

or

setupAxios({
	'httpAgent': new SocksProxyAgent(`socks5h://${torConfig.ip}:${torConfig.port}`),
	'httpsAgent': new SocksProxyAgent(`socks5h://${torConfig.ip}:${torConfig.port}`),
})

@gandlafbtc gandlafbtc merged commit 45b0ef5 into cashubtc:main Apr 1, 2023
@BilligsterUser BilligsterUser deleted the custom-axios-instance branch April 1, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants