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

Axios can be added to Integrations section of README #121

Open
Marshmalow212 opened this issue Nov 27, 2024 · 0 comments
Open

Axios can be added to Integrations section of README #121

Marshmalow212 opened this issue Nov 27, 2024 · 0 comments

Comments

@Marshmalow212
Copy link

Axios

I have used this request for a http proxy to access https server

axios.get(
    'http://localhost:9200', 
    {
        httpsAgent: new HttpsProxyAgent({
            keepAlive: true,
            keepAliveMsecs: 1000,
            maxSockets: 256,
            maxFreeSockets: 256,
            proxy: 'http://localhost:8080'
        })
    }
)
.then(
    res => console.log('https response : ',res.data)
)
.catch(
    e => console.log('test error : ',e)
)
.finally(
    () => console.log('httpbin test completed')

);
Marshmalow212 added a commit to Marshmalow212/hpagent that referenced this issue Nov 27, 2024
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

No branches or pull requests

1 participant